FS-4998 --resolve

This commit is contained in:
Anthony Minessale 2013-01-07 10:13:58 -06:00
parent 2bb859e2b4
commit 0177d7b23d
1 changed files with 5 additions and 1 deletions

View 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;