Fix a crash due to performing full URI validation on a contact which only contains '*'.
(closes issue AST-1198) Reported by: John Bigelow git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
23e86edf6f
commit
63a229e369
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ static int registrar_validate_contacts(const pjsip_rx_data *rdata, struct ao2_co
|
||||||
pjsip_endpt_release_pool(ast_sip_get_pjsip_endpoint(), details.pool);
|
pjsip_endpt_release_pool(ast_sip_get_pjsip_endpoint(), details.pool);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
} else if (previous && previous->star) {
|
} else if (previous && previous->star) {
|
||||||
/* If there is a previous contact and it is a '*' this is a deal breaker */
|
/* If there is a previous contact and it is a '*' this is a deal breaker */
|
||||||
pjsip_endpt_release_pool(ast_sip_get_pjsip_endpoint(), details.pool);
|
pjsip_endpt_release_pool(ast_sip_get_pjsip_endpoint(), details.pool);
|
||||||
|
|
Loading…
Reference in a new issue