summaryrefslogtreecommitdiffstats
path: root/src/responder/nss
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-05-25 10:09:20 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-05-25 13:30:52 -0400
commit8126906ab783494204dc853c814b0882d2a76523 (patch)
treed8fd922202f0db1e976a3e1f214c03b29bae5aca /src/responder/nss
parent188f9e1e646b0bed530913ca76bbcdf0f342cc66 (diff)
downloadsssd-8126906ab783494204dc853c814b0882d2a76523.tar.gz
sssd-8126906ab783494204dc853c814b0882d2a76523.tar.xz
sssd-8126906ab783494204dc853c814b0882d2a76523.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index db8a2ca13..2e539f135 100644
--- a/src/responder/nss/nsssrv_services.c
+++ b/src/responder/nss/nsssrv_services.c
@@ -1050,7 +1050,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;