Module: kamailio
Branch: master
Commit: 423a818cf6e8f6d672630a0365e13877a173508f
URL:
https://github.com/kamailio/kamailio/commit/423a818cf6e8f6d672630a0365e1387…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-24T21:06:45+02:00
siprepo: check if list is set on insert
---
Modified: src/modules/siprepo/siprepo_data.c
---
Diff:
https://github.com/kamailio/kamailio/commit/423a818cf6e8f6d672630a0365e1387…
Patch:
https://github.com/kamailio/kamailio/commit/423a818cf6e8f6d672630a0365e1387…
---
diff --git a/src/modules/siprepo/siprepo_data.c b/src/modules/siprepo/siprepo_data.c
index 6aea04833b..397def720f 100644
--- a/src/modules/siprepo/siprepo_data.c
+++ b/src/modules/siprepo/siprepo_data.c
@@ -242,7 +242,9 @@ int siprepo_msg_set(sip_msg_t *msg, str *msgid, int rmode)
it->pid = msg->pid;
it->mflags = msg->flags;
- _siprepo_table[slotid].plist->prev = it;
+ if(_siprepo_table[slotid].plist!=NULL) {
+ _siprepo_table[slotid].plist->prev = it;
+ }
it->next = _siprepo_table[slotid].plist;
_siprepo_table[slotid].plist = it;