Skip to content

Commit

Permalink
usrloc: safety check on len for user in db keepalive routine
Browse files Browse the repository at this point in the history
(cherry picked from commit a1620fa)
  • Loading branch information
miconda committed Oct 26, 2020
1 parent e3cda7f commit b51ea9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/usrloc/dlist.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b51ea9f

Please sign in to comment.