|Summary:||ASTERISK-08932: null pointer dereference in res_jabber.c after "Resource (null) of buddy ... not found"|
|Reporter:||Bartlomiej Korupczynski (klolik)||Labels:|
|Date Opened:||2007-03-04 08:11:10.000-0600||Date Closed:||2007-06-30 09:20:06|
|Environment:||Attachments:||( 0) res_jabber-buddyres.patch|
|Description:||asterisk reports "Resource (null) of buddy myname not found" and crashes, when JabberSend() is used on unavailable user. This is possibly triggered only when recipient have never been available since asterisk has connected to jabber server (I have not verified this).|
****** ADDITIONAL INFORMATION ******
Bug exists in 1.4.0 and 1.4.1. Patch attached.
|Comments:||By: Bartlomiej Korupczynski (klolik) 2007-03-04 08:19:00.000-0600|
Bug exists in aji_status_exec, thus being triggered by JabberStatus(). Sorry for mistake. Variable "r" is deferenced even if it's null:
ast_log(LOG_NOTICE, "Resource %s of buddy %s not found \n", resource, screenname);
stat = r->status;
By: Joshua C. Colp (jcolp) 2007-03-04 21:39:24.000-0600
Fixed in 1.4 as of revision 57770 and trunk as of revision 57771. Thanks!