[Asterisk-cvs] asterisk manager.c,1.105,1.106

russell at lists.digium.com russell at lists.digium.com
Mon Jul 25 18:54:58 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17776

Modified Files:
	manager.c 
Log Message:
don't set the event mask if the given eventmask was not valid


Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- manager.c	25 Jul 2005 22:58:34 -0000	1.105
+++ manager.c	25 Jul 2005 23:01:39 -0000	1.106
@@ -424,10 +424,11 @@
 	int maskint = ast_strings_to_mask(eventmask);
 
 	ast_mutex_lock(&s->lock);
-	s->send_events = maskint;
+	if (maskint >= 0)	
+		s->send_events = maskint;
 	ast_mutex_unlock(&s->lock);
 	
-	return s->send_events;
+	return maskint;
 }
 
 static int authenticate(struct mansession *s, struct message *m)




More information about the svn-commits mailing list