diff options
author | Badalyan Vyacheslav <v.badalyan@open-bs.ru> | 2016-12-08 18:30:38 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-12-08 16:53:12 -0600 |
commit | 934aa2c768e3b0bd33e2308d91b5623be3a0e27c (patch) | |
tree | b957ca8c67295dd0fbb8770f992ff73fe2b92d94 | |
parent | 5a96e1fb5e0158bf29accff11aea8afea8b40f48 (diff) |
res_pjsip: Fix 'A = B != C' kind.
Consider reviewing the expression of the 'A = B != C' kind.
The expression is calculated as following: 'A = (B != C)'
Change-Id: Ibaa637dfda47d51a20e26069d3103e05ce80003d
-rw-r--r-- | res/res_pjsip/pjsip_options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 09fe1559b..24e9272f5 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -701,7 +701,8 @@ static pj_status_t send_options_response(pjsip_rx_data *rdata, int code) pj_status_t status; /* Make the response object */ - if ((status = ast_sip_create_response(rdata, code, NULL, &tdata) != PJ_SUCCESS)) { + status = ast_sip_create_response(rdata, code, NULL, &tdata); + if (status != PJ_SUCCESS) { ast_log(LOG_ERROR, "Unable to create response (%d)\n", status); return status; } |