summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2009-06-16 02:32:33 +0000
committerRussell Bryant <russell@russellbryant.com>2009-06-16 02:32:33 +0000
commit3c235110692a77913eadbb39e033e4399d9c6766 (patch)
tree4f7d47e863a9ca82288ba401aeb3cf7f5e5b9a19 /main/manager.c
parent2c8cd1db9276340df36f23cee281a22e1566895e (diff)
Don't claim a char * is a mansession object.
Since there was only 1 bucket, and no hash function was specified, the code actually worked perfectly fine. However, in theory, this was invalid use of the OBJ_POINTER flag, so remove it so the code provides a better usage example. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 10087fcca..a2e85f351 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1121,7 +1121,7 @@ static void session_destroy(struct mansession_session *s)
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) {