mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-04-06 17:28:00 +08:00
radius: parse_groupnames: avoid overflow in group parsing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -231,7 +231,10 @@ static void parse_groupnames(struct radius_ctx_st *pctx, const char *full)
|
||||
trim_trailing_whitespace(p2);
|
||||
syslog(LOG_DEBUG, "radius-auth: found group %s", p2);
|
||||
|
||||
p2 = strsep(&p, ";");
|
||||
p2 = strsep(&p, ";");
|
||||
|
||||
if (i == MAX_GROUPS)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
pctx->groupnames[0] = talloc_strdup(pctx, full);
|
||||
|
||||
Reference in New Issue
Block a user