Revision
17485
Author
anthm
Date
2010-05-04 15:48:36 -0500 (Tue, 04 May 2010)

Log Message

fix NULL deref in err condition

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (17484 => 17485)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2010-05-04 18:12:44 UTC (rev 17484)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2010-05-04 20:48:36 UTC (rev 17485)
@@ -3778,8 +3778,9 @@
 	if (nsession) {
 		switch_core_session_destroy(&nsession);
 	}
-	*pool = NULL;
-
+	if (pool) {
+		*pool = NULL;
+	}
   done:
 
 	if (profile) {