[svn-commits] simon.perreault: branch group/v6 r88582 - /team/group/v6/trunk/main/netsock.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 5 10:51:05 CST 2007


Author: simon.perreault
Date: Mon Nov  5 10:51:04 2007
New Revision: 88582

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88582
Log:
Allow calling with NULL sbuf.

Modified:
    team/group/v6/trunk/main/netsock.c

Modified: team/group/v6/trunk/main/netsock.c
URL: http://svn.digium.com/view/asterisk/team/group/v6/trunk/main/netsock.c?view=diff&rev=88582&r1=88581&r2=88582
==============================================================================
--- team/group/v6/trunk/main/netsock.c (original)
+++ team/group/v6/trunk/main/netsock.c Mon Nov  5 10:51:04 2007
@@ -902,7 +902,7 @@
 
 	head = string;
 
-	if (!string || !hbuf || !hbuflen || !sbuf || !sbuflen)
+	if (!string || !hbuf || !hbuflen || (sbuf && !sbuflen) || (!sbuf && sbuflen))
 		return -1;
 
 	memset(hbuf, 0, hbuflen);




More information about the svn-commits mailing list