Merge "res_pjsip: Fix 'A = B != C' kind." into 13

This commit is contained in:
zuul
2016-12-08 21:54:37 -06:00
committed by Gerrit Code Review

View 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;
}