diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-25 10:09:20 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-25 13:30:49 -0400 |
commit | 43a813546f79a1c106643ecfa168b776a3083486 (patch) | |
tree | 78c26fdd806d0e4fc1a8d57e8d7668991773635a /src/responder/nss | |
parent | d4b5df1fe20e1deccfe747ee8f2008582e5c4566 (diff) | |
download | sssd-43a813546f79a1c106643ecfa168b776a3083486.tar.gz sssd-43a813546f79a1c106643ecfa168b776a3083486.tar.xz sssd-43a813546f79a1c106643ecfa168b776a3083486.zip |
NSS: Restore original protocol for getservbyport
When fixing an endianness bug, we changed the protocol unnecessarily.
Diffstat (limited to 'src/responder/nss')
-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 8280b837a..cf2a449b2 100644 --- a/src/responder/nss/nsssrv_services.c +++ b/src/responder/nss/nsssrv_services.c @@ -1051,7 +1051,7 @@ errno_t parse_getservbyport(TALLOC_CTX *mem_ctx, SAFEALIGN_COPY_UINT16(&c, body, NULL); port = ntohs(c); - port_and_padding_len = 2 * sizeof(uint16_t); + port_and_padding_len = 2 * sizeof(uint16_t) + sizeof(uint32_t); i = port_and_padding_len; j = 0; |