Browse Source

tm: add NULL check for transaction uac

Stefan Mititelu 1 tháng trước cách đây
mục cha
commit
4e2a930744
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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;