Module: kamailio
Branch: master
Commit: 4ba402434449ec9cb426d5200b12c5cec4d07ab4
URL:
https://github.com/kamailio/kamailio/commit/4ba402434449ec9cb426d5200b12c5c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-24T11:56:57+02:00
stun: link attribute when calling stun_parse_body() with an existing list
---
Modified: src/modules/stun/kam_stun.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4ba402434449ec9cb426d5200b12c5c…
Patch:
https://github.com/kamailio/kamailio/commit/4ba402434449ec9cb426d5200b12c5c…
---
diff --git a/src/modules/stun/kam_stun.c b/src/modules/stun/kam_stun.c
index 8257fbab4c..350317b0e7 100644
--- a/src/modules/stun/kam_stun.c
+++ b/src/modules/stun/kam_stun.c
@@ -336,8 +336,10 @@ static int stun_parse_body(
}
if (*unknown == NULL) {
*unknown = body = tmp_unknown;
- }
- else {
+ } else {
+ if(body==NULL) {
+ body = *unknown;
+ }
body->next = tmp_unknown;
body = body->next;
}