[asterisk-commits] russell: trunk r200805 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 15 21:32:37 CDT 2009


Author: russell
Date: Mon Jun 15 21:32:33 2009
New Revision: 200805

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=200805
Log:
Don't claim a char * is a mansession object.

This makes the option to prevent more than one connection per user actually work.

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/manager.c?view=diff&rev=200805&r1=200804&r2=200805
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Mon Jun 15 21:32:33 2009
@@ -1121,7 +1121,7 @@
 
 static int check_manager_session_inuse(const char *name)
 {
-	struct mansession_session *session = ao2_find(sessions, (char*) name, OBJ_POINTER);
+	struct mansession_session *session = ao2_find(sessions, (char *) name, 0);
 	int inuse = 0;
 
 	if (session) {




More information about the asterisk-commits mailing list