Browse code

rx_aar: unreference dialog in case of aar update

- release the dialog reference even for aar updates as the dialog was
already referenced when issuing the aar request

Atanas Bakalov authored on 10/05/2022 12:54:34
Showing 1 changed files
... ...
@@ -180,6 +180,8 @@ void async_aar_callback(int is_timeout, void *param, AAAMessage *aaa, long elaps
180 180
             STR_SHM_DUP(*passed_rx_session_id, aaa->sessionId->data, "cb_passed_rx_session_id");
181 181
             LM_DBG("passed rx session id [%.*s]", passed_rx_session_id->len, passed_rx_session_id->s);
182 182
             dlgb.register_dlgcb_nodlg( data->dlg, DLGCB_TERMINATED | DLGCB_DESTROY | DLGCB_EXPIRED | DLGCB_RESPONSE_WITHIN | DLGCB_CONFIRMED | DLGCB_FAILED, callback_dialog, (void*) (passed_rx_session_id), free_dialog_data);
183
+        } else {
184
+            unref_dlg(data->dlg, 1);
183 185
         }
184 186
         result = CSCF_RETURN_TRUE;
185 187
     } else {