From: Tilghman Lesher Date: Mon, 4 Jun 2007 15:50:16 +0000 (+0000) Subject: Issue 9739 - Malformed jid causes a crash X-Git-Tag: 1.4.5~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c314f35ac28305341a6f740a9df143f93134dac5;p=thirdparty%2Fasterisk.git Issue 9739 - Malformed jid causes a crash git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67021 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_jabber.c b/res/res_jabber.c index a318387004..481001e6b6 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -542,6 +542,10 @@ static int aji_act_hook(void *data, int type, iks *node) } } } 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);