[asterisk-commits] branch kpfleming/stringfields - r7759 /team/kpfleming/stringfields/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 3 19:09:37 CST 2006


Author: kpfleming
Date: Tue Jan  3 19:09:36 2006
New Revision: 7759

URL: http://svn.digium.com/view/asterisk?rev=7759&view=rev
Log:
make non-zero checking NULL tolerant

Modified:
    team/kpfleming/stringfields/channels/chan_sip.c

Modified: team/kpfleming/stringfields/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/kpfleming/stringfields/channels/chan_sip.c?rev=7759&r1=7758&r2=7759&view=diff
==============================================================================
--- team/kpfleming/stringfields/channels/chan_sip.c (original)
+++ team/kpfleming/stringfields/channels/chan_sip.c Tue Jan  3 19:09:36 2006
@@ -5587,7 +5587,7 @@
 	struct sip_request resp;
 
 	reqprep(&resp, p, sipmethod, seqno, newbranch);
-	if (*p->realm) {
+	if (!ast_strlen_zero(p->realm)) {
 		char digest[1024];
 
 		memset(digest, 0, sizeof(digest));



More information about the asterisk-commits mailing list