diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-04 15:50:16 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-04 15:50:16 +0000 |
commit | 7be30db4648a746035e75f3e5eeff65137950068 (patch) | |
tree | 1c9de83e50c265b275473da9c69ef4636a0bff68 /res | |
parent | 2c93eab1763912b5be3fcef0d2929e321dd247fe (diff) |
Issue 9739 - Malformed jid causes a crash
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67021 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_jabber.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index a31838700..481001e6b 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); |