]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4776 forgot to push this
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 1 Nov 2012 20:29:53 +0000 (16:29 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 1 Nov 2012 20:29:53 +0000 (16:29 -0400)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 679a4d65886bcdcf7f0a144bf3dd617959729ebd..f8f233aa87e891ebb8086388727a553c43531b57 100644 (file)
@@ -4186,7 +4186,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
                                tech_pvt->them = switch_core_session_strdup(session, ldl_session_get_callee(dlsession));
                                tech_pvt->us = switch_core_session_strdup(session, ldl_session_get_caller(dlsession));
 
-                               if ((tmp = strdup(tech_pvt->us))) {
+                               if (tech_pvt->us && (tmp = strdup(tech_pvt->us))) {
                                        char *p, *q;
 
                                        if ((p = strchr(tmp, '@'))) {