[svn-commits] file: branch 1.4 r227166 - /branches/1.4/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 3 09:36:21 CST 2009


Author: file
Date: Tue Nov  3 09:36:16 2009
New Revision: 227166

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=227166
Log:
Fix a bug where an RPID header could be generated with a blank username in the URI.

(closes issue #15909)
Reported by: kobaz

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=227166&r1=227165&r2=227166
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Nov  3 09:36:16 2009
@@ -7272,7 +7272,7 @@
 	if (!ast_strlen_zero(p->rpid) || !ast_strlen_zero(p->rpid_from))  
 		return;
 
-	if (p->owner && p->owner->cid.cid_num)
+	if (p->owner && !ast_strlen_zero(p->owner->cid.cid_num))
 		clid = p->owner->cid.cid_num;
 	if (p->owner && p->owner->cid.cid_name)
 		clin = p->owner->cid.cid_name;




More information about the svn-commits mailing list