Module: sip-router
Branch: 3.3
Commit: 47b544d4e0fe40c683566d9ffce54cc761a1eee1
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=47b544d4e0fe40c683566d9ffce54cc761a1eee1

Author: Dragos Dinu <[email protected]>
Committer: Anca Vamanu <[email protected]>
Date:   Mon Oct 15 18:29:48 2012 +0300

modules_k/siptrace Fixed crash when using HEP v2
(cherry picked from commit 5d9d4d017d79d4e9269bbeb019460b3c8d8695d0)

---

 modules_k/siptrace/siptrace.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules_k/siptrace/siptrace.c b/modules_k/siptrace/siptrace.c
index eb893a3..b0c64f8 100644
--- a/modules_k/siptrace/siptrace.c
+++ b/modules_k/siptrace/siptrace.c
@@ -1604,6 +1604,9 @@ static int trace_send_hep_duplicate(str *body, str *from, 
str *to)
        }
 
        hdr.hp_l +=len;
+       if (hep_version == 2){
+               len += sizeof(struct hep_timehdr);
+       }
        len += sizeof(struct hep_hdr) + body->len;
        buffer = (void *)pkg_malloc(len+1);
        if (buffer==0){


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to