]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4998 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 7 Jan 2013 16:13:58 +0000 (10:13 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 7 Jan 2013 16:13:58 +0000 (10:13 -0600)
src/mod/endpoints/mod_sofia/sofia_reg.c

index c0b81d3573b7b0f6b6947e3f87b13e69127cf9a0..07270b8cace3ae00771f5ca1d6a49607524ea2f0 100644 (file)
@@ -526,7 +526,11 @@ int sofia_reg_find_reg_with_positive_expires_callback(void *pArg, int argc, char
        long int expires;
        char *contact = NULL;
 
-       if (argv[0] && cbt->contact_str && !strcasecmp(argv[0], cbt->contact_str)) {
+       if (zstr(argv[0])) {
+               return 0;
+       }
+
+       if (cbt->contact_str && !strcasecmp(argv[0], cbt->contact_str)) {
                expires = cbt->exptime;
        } else {
                expires = atol(argv[1]) - 60 - (long) cbt->time;