[sr-dev] [kamailio/kamailio] 5.5.1 crash processing INVITE and CANCEL at almost the same time (Issue #3156)

Victor Seva notifications at github.com
Mon Jul 4 16:11:03 CEST 2022


maybe this will help?

```
diff --git a/src/modules/tm/t_funcs.h b/src/modules/tm/t_funcs.h
index 6830b13..dbbdc19 100644
--- a/src/modules/tm/t_funcs.h
+++ b/src/modules/tm/t_funcs.h
@@ -110,7 +110,7 @@ int send_pr_buffer( struct retr_buf *rb, void *buf, int len);
 
 #define UNREF_NOSTATS(_T_cell) \
 	do{\
-		if (atomic_dec_and_test(&(_T_cell)->ref_count)){ \
+		if (_T_cell && atomic_dec_and_test(&(_T_cell)->ref_count)){ \
 			unlink_timers((_T_cell)); \
 			free_cell((_T_cell)); \
 		}\
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3156#issuecomment-1173867017
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3156/1173867017 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220704/74a68dc8/attachment.htm>


More information about the sr-dev mailing list