فهرست منبع

- t_uac doesn't register a callback anymore if received a null function
(thanks to Jamey Hicks)

Bogdan-Andrei Iancu 22 سال پیش
والد
کامیت
dcc4133d17
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/tm/uac.c

+ 1 - 1
modules/tm/uac.c

@@ -184,7 +184,7 @@ int t_uac(str* method, str* headers, str* body, dlg_t* dialog,
 	}
 
 	/* add the callback the the transaction for LOCAL_COMPLETED event */
-	if (insert_tmcb( &(new_cell->tmcb_hl), TMCB_LOCAL_COMPLETED, cb, cbp)!=1) {
+	if(cb && insert_tmcb(&(new_cell->tmcb_hl),TMCB_LOCAL_COMPLETED,cb,cbp)!=1){
 		ret=E_OUT_OF_MEM;
 		LOG(L_ERR, "t_uac: short of tmcb shmem\n");
 		goto error2;