]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2867
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Nov 2010 16:07:07 +0000 (10:07 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Nov 2010 19:19:04 +0000 (13:19 -0600)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 7558e1b1b8e676f8a15b4725b4ae31470782c18d..f5d515c8d4d699bf268e2298303bf09a6fb302ee 100644 (file)
@@ -602,7 +602,7 @@ static void ipchanged_event_handler(switch_event_t *event)
                        for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
                                switch_hash_this(hi, NULL, NULL, &val);
                                profile = (mdl_profile_t *) val;
-                               if (old_ip4 && !strcmp(profile->extip, old_ip4)) {
+                               if (old_ip4 && profile->extip && !strcmp(profile->extip, old_ip4)) {
                                        tmp = profile->extip;
                                        profile->extip = strdup(new_ip4);
                                        switch_safe_free(tmp);