Skip to content
Snippets Groups Projects
Commit fe448ac8 authored by George Joseph's avatar George Joseph
Browse files

res_pjsip_mwi: Fix segv caused by 16c7d8e7

I forgot the new voicemail_extension wasn't a stringfield and didn't check
for NULL where I should have.

Change-Id: I029482d5c2ab72474838750461bd46b0809c90fb
parent 3c91a76a
No related branches found
No related tags found
No related merge requests found
...@@ -459,7 +459,8 @@ static struct ast_sip_aor *find_aor_for_resource(struct ast_sip_endpoint *endpoi ...@@ -459,7 +459,8 @@ static struct ast_sip_aor *find_aor_for_resource(struct ast_sip_endpoint *endpoi
continue; continue;
} }
if (!strcasecmp(check_aor->voicemail_extension, resource)) { if (!ast_strlen_zero(check_aor->voicemail_extension)
&& !strcasecmp(check_aor->voicemail_extension, resource)) {
ast_debug(1, "Found an aor (%s) that matches voicemail_extension %s\n", aor_name, resource); ast_debug(1, "Found an aor (%s) that matches voicemail_extension %s\n", aor_name, resource);
return check_aor; return check_aor;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment