[asterisk-commits] trunk r31469 - /trunk/res/res_jabber.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jun 1 11:48:22 MST 2006


Author: mogorman
Date: Thu Jun  1 13:48:22 2006
New Revision: 31469

URL: http://svn.digium.com/view/asterisk?rev=31469&view=rev
Log:
more minor fixes thanks Julian on pointing out 
potential problems

Modified:
    trunk/res/res_jabber.c

Modified: trunk/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_jabber.c?rev=31469&r1=31468&r2=31469&view=diff
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Thu Jun  1 13:48:22 2006
@@ -342,9 +342,7 @@
 		if (!strcasecmp(iterator->user, screenname)) {
 			found = 1; 
 			r = iterator->resources; 
-			if (!r) {	/* client hasnt signed on */
-				break;
-			} else {
+			if (r) {	/* client has signed on */
 				if (resource) {
 					while (r) {
 						if (!strcasecmp(r->resource, resource)) {
@@ -353,7 +351,9 @@
 						}
 						r = r->next;
 					}
+					if(stat != 7) break;
 					ast_log(LOG_WARNING, "Resource not found %s\n", resource);
+					break;
 				} else {
 					stat = r->status; 
 					break;



More information about the asterisk-commits mailing list