[svn-commits] file: branch 1.4 r57770 -
/branches/1.4/res/res_jabber.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Mar 4 20:35:03 MST 2007
Author: file
Date: Sun Mar 4 21:35:03 2007
New Revision: 57770
URL: http://svn.digium.com/view/asterisk?view=rev&rev=57770
Log:
Don't reference a potentially NULL pointer. (issue #9199 reported by klolik)
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=57770&r1=57769&r2=57770
==============================================================================
--- branches/1.4/res/res_jabber.c (original)
+++ branches/1.4/res/res_jabber.c Sun Mar 4 21:35:03 2007
@@ -383,7 +383,8 @@
r = buddy->resources;
if(!r)
ast_log(LOG_NOTICE, "Resource %s of buddy %s not found \n", resource, screenname);
- stat = r->status;
+ else
+ stat = r->status;
sprintf(status, "%d", stat);
pbx_builtin_setvar_helper(chan, variable, status);
return 0;
More information about the svn-commits
mailing list