소스 검색

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