[asterisk-commits] tilghman: branch 1.4 r67021 -
	/branches/1.4/res/res_jabber.c
    asterisk-commits at lists.digium.com 
    asterisk-commits at lists.digium.com
       
    Mon Jun  4 08:50:17 MST 2007
    
    
  
Author: tilghman
Date: Mon Jun  4 10:50:16 2007
New Revision: 67021
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67021
Log:
Issue 9739 - Malformed jid causes a crash
Modified:
    branches/1.4/res/res_jabber.c
Modified: branches/1.4/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_jabber.c?view=diff&rev=67021&r1=67020&r2=67021
==============================================================================
--- branches/1.4/res/res_jabber.c (original)
+++ branches/1.4/res/res_jabber.c Mon Jun  4 10:50:16 2007
@@ -542,6 +542,10 @@
 								}
 							}
 						} else {
+							if (!client->jid->user) {
+								ast_log(LOG_ERROR, "Malformed Jabber ID : %s (domain missing?)\n", client->jid->full);
+								break;
+							}
 							features = aji_highest_bit(features);
 							if (features == IKS_STREAM_SASL_MD5)
 								iks_start_sasl(client->p, IKS_SASL_DIGEST_MD5, client->jid->user, client->password);
    
    
More information about the asterisk-commits
mailing list