fix NULL deref in err condition
--- 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) {