瀏覽代碼

modules/ims_auth: prevent crash if suspended transaction disappears waiting for a MAR

jaybeepee 9 年之前
父節點
當前提交
391c8ac03f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      modules/ims_auth/cxdx_mar.c

+ 3 - 1
modules/ims_auth/cxdx_mar.c

@@ -137,7 +137,7 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *maa, long elaps
     if (tmb.t_lookup_ident(&t, data->tindex, data->tlabel) < 0) {
         LM_ERR("t_continue: transaction not found\n");
         result = CSCF_RETURN_ERROR;
-        goto error;
+        goto error1;
     }
 
     /* get the private_identity */
@@ -485,6 +485,8 @@ error:
         tmb.unref_cell(t);
     }
     tmb.t_continue(data->tindex, data->tlabel, data->act);
+    
+error1:    
     free_saved_transaction_data(data);
 }