diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-08 16:46:06 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-08 16:49:53 -0500 |
commit | ca7325359e8763bb5c1db2ac188d22b4c100d531 (patch) | |
tree | 3f97876ff9453879d4be8b2ab93251c850245226 /src/responder | |
parent | b46635a151ca93b74a45bbaa3f782da43b3692f9 (diff) | |
download | sssd-ca7325359e8763bb5c1db2ac188d22b4c100d531.tar.gz sssd-ca7325359e8763bb5c1db2ac188d22b4c100d531.tar.xz sssd-ca7325359e8763bb5c1db2ac188d22b4c100d531.zip |
Ignore NULL-terminator when checking UTF8-validity for netgroups
Glib fails if the NULL-terminator is included when a length is specified.
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/nss/nsssrv_netgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c index 7d5665d41..189f85248 100644 --- a/src/responder/nss/nsssrv_netgroup.c +++ b/src/responder/nss/nsssrv_netgroup.c @@ -115,7 +115,7 @@ int nss_cmd_setnetgrent(struct cli_ctx *client) } /* If the body isn't valid UTF-8, fail */ - if (!sss_utf8_check(body, blen)) { + if (!sss_utf8_check(body, blen -1)) { ret = EINVAL; goto done; } |