Module: kamailio
Branch: master
Commit: c4e462fa6bda38ac6fd814ce8d98ea030d4049b9
URL:
https://github.com/kamailio/kamailio/commit/c4e462fa6bda38ac6fd814ce8d98ea0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-28T20:27:43+01:00
core: parser sdp - print hdr name by length on error in get_sdp_hdr_field()
---
Modified: src/core/parser/sdp/sdp_helpr_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c4e462fa6bda38ac6fd814ce8d98ea0…
Patch:
https://github.com/kamailio/kamailio/commit/c4e462fa6bda38ac6fd814ce8d98ea0…
---
diff --git a/src/core/parser/sdp/sdp_helpr_funcs.c
b/src/core/parser/sdp/sdp_helpr_funcs.c
index c62a347ddc..9b7a442e79 100644
--- a/src/core/parser/sdp/sdp_helpr_funcs.c
+++ b/src/core/parser/sdp/sdp_helpr_funcs.c
@@ -757,7 +757,8 @@ char* get_sdp_hdr_field(char* buf, char* end, struct hdr_field* hdr)
if (match){
match++;
}else {
- LM_ERR("bad body for <%s>(%d)\n", hdr->name.s, hdr->type);
+ LM_ERR("bad body for <%.*s>(%d)\n", hdr->name.len, hdr->name.s,
+ hdr->type);
tmp=end;
goto error;
}