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
certified/1.8.6
Russell Bryant 17 years ago
parent 2c8cd1db92
commit 3c23511069

@ -1121,7 +1121,7 @@ static void session_destroy(struct mansession_session *s)
static int check_manager_session_inuse(const char *name) 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; int inuse = 0;
if (session) { if (session) {

Loading…
Cancel
Save