diff options
author | Joshua Colp <jcolp@digium.com> | 2016-04-04 18:21:29 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-04-04 18:21:29 -0500 |
commit | cac6453e9a9cbc8996769550f0de29d92a0aff56 (patch) | |
tree | dc9366ae24c5f85df513ee66cb42535a84581de0 | |
parent | 5de637df4d1f37de8e37a2279238a322cc2b9cf4 (diff) | |
parent | fe448ac8a74cc4629a4596325d25e2dd8c26fba3 (diff) |
Merge "res_pjsip_mwi: Fix segv caused by 16c7d8e74a9af13f98c3c22aa9c43ce39965f6b7" into 13
-rw-r--r-- | res/res_pjsip_mwi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_pjsip_mwi.c b/res/res_pjsip_mwi.c index 8735a7842..64d3c84ea 100644 --- a/res/res_pjsip_mwi.c +++ b/res/res_pjsip_mwi.c @@ -459,7 +459,8 @@ static struct ast_sip_aor *find_aor_for_resource(struct ast_sip_endpoint *endpoi 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); return check_aor; } |