Module: kamailio
Branch: master
Commit: a1620fa1b4587239835db6ed5765ce04f927172d
URL:
https://github.com/kamailio/kamailio/commit/a1620fa1b4587239835db6ed5765ce0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-26T14:02:48+01:00
usrloc: safety check on len for user in db keepalive routine
---
Modified: src/modules/usrloc/dlist.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a1620fa1b4587239835db6ed5765ce0…
Patch:
https://github.com/kamailio/kamailio/commit/a1620fa1b4587239835db6ed5765ce0…
---
diff --git a/src/modules/usrloc/dlist.c b/src/modules/usrloc/dlist.c
index 96a95fe3c9..44ce3c6376 100644
--- a/src/modules/usrloc/dlist.c
+++ b/src/modules/usrloc/dlist.c
@@ -236,7 +236,7 @@ int ul_ka_db_records(int partidx)
continue;
}
ur.aor.len = strlen(p);
- if(ur.aor.len >= ULKA_AORBUF_SIZE) {
+ if(ur.aor.len >= ULKA_AORBUF_SIZE - 1) {
LM_DBG("long username ->skipping\n");
continue;
}