diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-11 11:37:33 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-13 09:24:50 +0200 |
commit | 3c79852d5d5ba4111c0535bafea43450dba8ed12 (patch) | |
tree | ccbbf82355734a8128968fa7eaf1ad939d673240 /src/responder | |
parent | 30f029ee8e4220cfa03ae06df88860186482b483 (diff) | |
download | sssd-3c79852d5d5ba4111c0535bafea43450dba8ed12.tar.gz sssd-3c79852d5d5ba4111c0535bafea43450dba8ed12.tar.bz2 sssd-3c79852d5d5ba4111c0535bafea43450dba8ed12.zip |
NSS: Fix off-by-one error in parse_getservbyname
https://fedorahosted.org/sssd/ticket/1438
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/nss/nsssrv_services.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c index 90698231..880058fa 100644 --- a/src/responder/nss/nsssrv_services.c +++ b/src/responder/nss/nsssrv_services.c @@ -930,7 +930,7 @@ errno_t parse_getservbyname(TALLOC_CTX *mem_ctx, /* The protocol must be no longer than the remaining * body space, after the name was copied. */ - protocol = talloc_array(tmp_ctx, char, blen - i - 1); + protocol = talloc_array(tmp_ctx, char, blen - i); if (!protocol) { ret = ENOMEM; goto done; |