OSSP CVS Repository

ossp - Check-in [4219]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4219
Date: 2001-Jul-19 17:02:47 (local)
2001-Jul-19 15:02:47 (UTC)
User:simons
Branch:
Comment: Added assertion that the to-be-encoded buffer must not be NULL.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xdr-encode-octedstream.c      1.1 -> 1.2     1 inserted, 0 deleted

ossp-pkg/xds/xdr-encode-octedstream.c 1.1 -> 1.2

--- xdr-encode-octedstream.c     2001/07/19 14:58:27     1.1
+++ xdr-encode-octedstream.c     2001/07/19 15:02:47     1.2
@@ -49,6 +49,7 @@
        padding. */
 
     p       = (u_int8_t*)va_arg(*args, void*);
+    assert(p != NULL);
     p_len   = va_arg(*args, size_t);
     padding = (4 - (p_len & 0x03)) & 0x03;
     assert((p_len + padding) % 4 == 0);

CVSTrac 2.0.1