OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xdr-encode-int32.c versions 1.3.2.1 and 1.3.2.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/xdr-encode-int32.c 1.3.2.1 -> 1.3.2.2

--- xdr-encode-int32.c   2001/08/01 09:54:55     1.3.2.1
+++ xdr-encode-int32.c   2001/08/01 11:26:56     1.3.2.2
@@ -46,9 +46,10 @@
     /* We need 4 bytes in the buffer to format our parameter. If we
        don't have them, return an overflow error. */
 
-    *used_buffer_size = 4;
     if (buffer_size < 4)
         return XDS_ERR_OVERFLOW;
+    else
+        *used_buffer_size = 4;
 
     /* Get value and format it into the buffer. */
 

CVSTrac 2.0.1