Module: kamailio
Branch: master
Commit: 7dd643a88fd7944ee86b795298c76e6d5fd58b8f
URL:
https://github.com/kamailio/kamailio/commit/7dd643a88fd7944ee86b795298c76e6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-08T09:36:49+02:00
dlgs: safety check for accessing next field
---
Modified: src/modules/dlgs/dlgs_records.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7dd643a88fd7944ee86b795298c76e6…
Patch:
https://github.com/kamailio/kamailio/commit/7dd643a88fd7944ee86b795298c76e6…
---
diff --git a/src/modules/dlgs/dlgs_records.c b/src/modules/dlgs/dlgs_records.c
index 1f6af22ba3..d3084084d5 100644
--- a/src/modules/dlgs/dlgs_records.c
+++ b/src/modules/dlgs/dlgs_records.c
@@ -970,7 +970,9 @@ void dlgs_ht_timer(unsigned int ticks, void *param)
it->prev = NULL;
}
} else {
- ite->prev->next = it;
+ if(ite->prev) {
+ ite->prev->next = it;
+ }
if(it!=NULL) {
it->prev = ite->prev;
}