瀏覽代碼

tm: add NULL check for transaction uac

Stefan Mititelu 1 月之前
父節點
當前提交
4e2a930744
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/modules/tm/timer.c

+ 6 - 0
src/modules/tm/timer.c

@@ -385,6 +385,12 @@ inline static void final_response_handler(
 		return;
 	};
 
+	/* FR if no transaction.... */
+	if(t->uac == NULL) {
+		LM_WARN("transaction %p no uac (flags %x)\n", t, t->flags);
+		return;
+	}
+
 	/* lock reply processing to determine how to proceed reliably */
 	LOCK_REPLIES(t);
 	/* now it can be only a request retransmission buffer;