Module: kamailio
Branch: master
Commit: 1e1ad4e74822881bb4d9cc2e9bd0f53e845bb48b
URL:
https://github.com/kamailio/kamailio/commit/1e1ad4e74822881bb4d9cc2e9bd0f53…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-12T08:01:37+02:00
sdpops: proper detect CR or LF
---
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1e1ad4e74822881bb4d9cc2e9bd0f53…
Patch:
https://github.com/kamailio/kamailio/commit/1e1ad4e74822881bb4d9cc2e9bd0f53…
---
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index f40062420a7..fb9abde6be5 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -2075,7 +2075,7 @@ int sdpops_attr_val(str *payload, str *attr, str *val)
/* find EoL or EoData */
eline = sline;
while(eline < payload->s + payload->len) {
- if(*eline == '\r' || *eline == '\r') {
+ if(*eline == '\r' || *eline == '\n') {
break;
}
eline++;