[svn-commits] tilghman: trunk r268454 - /trunk/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jun 5 12:27:18 CDT 2010


Author: tilghman
Date: Sat Jun  5 12:27:12 2010
New Revision: 268454

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268454
Log:
Verify event is not NULL before attempting to lower its usecount.

(closes issue #17234)
 Reported by: mav3rick

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/manager.c?view=diff&rev=268454&r1=268453&r2=268454
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Sat Jun  5 12:27:12 2010
@@ -1222,7 +1222,9 @@
 	if (session->f != NULL) {
 		fclose(session->f);
 	}
-	ast_atomic_fetchadd_int(&eqe->usecount, -1);
+	if (eqe) {
+		ast_atomic_fetchadd_int(&eqe->usecount, -1);
+	}
 }
 
 /*! \brief Allocate manager session structure and add it to the list of sessions */




More information about the svn-commits mailing list