]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip: Fix 'A = B != C' kind. 93/4593/2
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Thu, 8 Dec 2016 18:30:38 +0000 (18:30 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 8 Dec 2016 19:22:13 +0000 (13:22 -0600)
Consider reviewing the expression of the 'A = B != C' kind.
The expression is calculated as following: 'A = (B != C)'

Change-Id: Ibaa637dfda47d51a20e26069d3103e05ce80003d

res/res_pjsip/pjsip_options.c

index 8c8836fd904631f58c43b80e0dcb5444afe0c4ba..08eb4583955729d75f3b0426dda2864847bad435 100644 (file)
@@ -711,7 +711,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;
        }