Procházet zdrojové kódy

tm: add NULL check for transaction uac

Stefan Mititelu před 1 měsícem
rodič
revize
4e2a930744
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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;