Module: kamailio
Branch: master
Commit: c30cd3db7587a3c875770fbc558f4a5ad38b58bd
URL:
https://github.com/kamailio/kamailio/commit/c30cd3db7587a3c875770fbc558f4a5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-14T12:50:36+02:00
avp: check for null string
---
Modified: src/modules/avp/avp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c30cd3db7587a3c875770fbc558f4a5…
Patch:
https://github.com/kamailio/kamailio/commit/c30cd3db7587a3c875770fbc558f4a5…
---
diff --git a/src/modules/avp/avp.c b/src/modules/avp/avp.c
index f11d56baeb..63ce537d7a 100644
--- a/src/modules/avp/avp.c
+++ b/src/modules/avp/avp.c
@@ -1359,7 +1359,7 @@ static int attr_hdr_body2attrs(struct sip_msg* m, char* header_,
char* prefix_)
}
};
}
- if (s.len && s.s[0] == header->field_delimiter) {
+ if (s.len && s.s && s.s[0] == header->field_delimiter) {
s.s++;
s.len--;
}