Module: kamailio
Branch: master
Commit: c2cfa3526adaf79daa9701321072327c58bd522c
URL: 
https://github.com/kamailio/kamailio/commit/c2cfa3526adaf79daa9701321072327c58bd522c

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-07-07T13:25:55+02:00

core: check return for append_str_list()

---

Modified: src/core/msg_translator.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/c2cfa3526adaf79daa9701321072327c58bd522c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c2cfa3526adaf79daa9701321072327c58bd522c.patch

---

diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 819700c2f3a..1d79b8887b7 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -1984,6 +1984,10 @@ int check_boundaries(struct sip_msg *msg, struct 
dest_info *send_info)
                                        lb_t = lb_f;
                                } else {
                                        lb_t = append_str_list(tmp.s, tmp.len, 
&lb_t, &lb_size);
+                                       if(lb_t == NULL) {
+                                               LM_ERR("failed to append 
boundary match to list\n");
+                                               goto error;
+                                       }
                                }
                                lb_found = lb_found + 1;
                                tmp.s = tmp.s + ret;

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to