[sr-dev] git:master:1562c31c: core: print content when failing to parse rr body

Daniel-Constantin Mierla miconda at gmail.com
Sun Jul 24 15:20:08 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-24T15:19:27+02:00

core: print content when failing to parse rr body

---

Modified: parser/parse_rr.c

---

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

---

diff --git a/parser/parse_rr.c b/parser/parse_rr.c
index e478ebe..4fb32b0 100644
--- a/parser/parse_rr.c
+++ b/parser/parse_rr.c
@@ -129,6 +129,7 @@ static inline int do_parse_rr_body(char *buf, int len, rr_t **head)
 error:
 	if (r) free_rr(&r);
 	free_rr(head); /* Free any contacts created so far */
+	LM_ERR("Failed parsing rr header body [%.*s]\n", len, ZSW(buf));
 	return -1;
 
 ok:




More information about the sr-dev mailing list