Skip to content

Commit

Permalink
msrp_relay: fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Mar 31, 2022
1 parent a05be94 commit eb3354a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/msrp_relay/msrp_relay.c
Expand Up @@ -363,7 +363,7 @@ int handle_msrp_request(struct msrp_msg *req, void *param)
}
} else if (req->fl.u.request.method_id != MSRP_METHOD_OTHER) {
if (req->fl.u.request.method_id == MSRP_METHOD_SEND &&
(!req->failure_report || str_strcmp(&str_init(REPORT_NO_STR),
(!req->failure_report || str_strcmp((&str_init(REPORT_NO_STR)),
&req->failure_report->body))) {
report = 1;

Expand Down Expand Up @@ -493,7 +493,7 @@ int handle_msrp_reply(struct msrp_msg *rpl, struct msrp_cell *tran, void *param)
}
} else {
if ((!tran->failure_report.len || str_strcmp(&tran->failure_report,
&str_init(REPORT_NO_STR))) &&
(&str_init(REPORT_NO_STR)))) &&
msrp_api.send_report(msrp_hdl, &str_init(STATUS_TIMEOUT_STR),
NULL, tran) < 0)
LM_ERR("Failed to send REPORT for failure response\n");
Expand All @@ -503,7 +503,7 @@ int handle_msrp_reply(struct msrp_msg *rpl, struct msrp_cell *tran, void *param)

if (tran->method_id != MSRP_METHOD_AUTH) {
if ((tran->failure_report.len && !str_strcmp(&tran->failure_report,
&str_init(REPORT_YES_STR))) &&
(&str_init(REPORT_YES_STR)))) &&
msrp_api.send_report(msrp_hdl, &str_init(STATUS_TIMEOUT_STR),
NULL, tran) < 0)
LM_ERR("Failed to send REPORT on timeout\n");
Expand Down

0 comments on commit eb3354a

Please sign in to comment.