[asterisk-commits] phsultan: branch phsultan/jabberreceive r176498 - /team/phsultan/jabberreceiv...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 17 04:12:02 CST 2009
Author: phsultan
Date: Tue Feb 17 04:12:01 2009
New Revision: 176498
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176498
Log:
A single check on the full JID is enough
Modified:
team/phsultan/jabberreceive/res/res_jabber.c
Modified: team/phsultan/jabberreceive/res/res_jabber.c
URL: http://svn.digium.com/svn-view/asterisk/team/phsultan/jabberreceive/res/res_jabber.c?view=diff&rev=176498&r1=176497&r2=176498
==============================================================================
--- team/phsultan/jabberreceive/res/res_jabber.c (original)
+++ team/phsultan/jabberreceive/res/res_jabber.c Tue Feb 17 04:12:01 2009
@@ -707,7 +707,7 @@
parse = ast_strdupa(args.jid);
AST_NONSTANDARD_APP_ARGS(jid, parse, '/');
- if (jid.argc < 1 || jid.argc > 2 || strlen(args.jid) > AJI_MAX_JIDLEN || strlen(jid.resource) > AJI_MAX_RESJIDLEN) {
+ if (jid.argc < 1 || jid.argc > 2 || strlen(args.jid) > AJI_MAX_JIDLEN) {
ast_log(LOG_WARNING, "Invalid JID : %s\n", parse);
ASTOBJ_UNREF(client, aji_client_destroy);
return -1;
More information about the asterisk-commits
mailing list