mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
res_pjsip_outbound_registration.c: Fix whitespace conflict potential.
Change-Id: I82e6e388e3688aebe0783f16c9e0800a747584b5
This commit is contained in:
@@ -389,7 +389,7 @@ static struct pjsip_param *get_uri_option_line(const void *uri)
|
|||||||
static const pj_str_t LINE_STR = { "line", 4 };
|
static const pj_str_t LINE_STR = { "line", 4 };
|
||||||
|
|
||||||
if (!PJSIP_URI_SCHEME_IS_SIP(uri) && !PJSIP_URI_SCHEME_IS_SIPS(uri)) {
|
if (!PJSIP_URI_SCHEME_IS_SIP(uri) && !PJSIP_URI_SCHEME_IS_SIPS(uri)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
pjuri = pjsip_uri_get_uri(uri);
|
pjuri = pjsip_uri_get_uri(uri);
|
||||||
return pjsip_param_find(&pjuri->other_param, &LINE_STR);
|
return pjsip_param_find(&pjuri->other_param, &LINE_STR);
|
||||||
@@ -403,7 +403,7 @@ static struct ast_sip_endpoint *line_identify(pjsip_rx_data *rdata)
|
|||||||
RAII_VAR(struct sip_outbound_registration_state *, state, NULL, ao2_cleanup);
|
RAII_VAR(struct sip_outbound_registration_state *, state, NULL, ao2_cleanup);
|
||||||
|
|
||||||
if (!(line = get_uri_option_line(rdata->msg_info.to->uri))
|
if (!(line = get_uri_option_line(rdata->msg_info.to->uri))
|
||||||
&& !(line = get_uri_option_line(rdata->msg_info.msg->line.req.uri))) {
|
&& !(line = get_uri_option_line(rdata->msg_info.msg->line.req.uri))) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user