]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip: Fix 'A = B != C' kind. 00/4600/1
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Thu, 8 Dec 2016 18:30:38 +0000 (18:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Dec 2016 22:53:02 +0000 (16:53 -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 09fe1559bfb0d8d5de4d18a28aef24a2299443d5..24e9272f5c832c96039b514c0400b1ea5316429c 100644 (file)
@@ -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;
        }