summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/nss_services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/nss_services.c b/src/sss_client/nss_services.c
index 159583d7..5f98d8dc 100644
--- a/src/sss_client/nss_services.c
+++ b/src/sss_client/nss_services.c
@@ -286,7 +286,7 @@ _nss_sss_getservbyport_r(int port, const char *protocol,
}
}
- rd.len = sizeof(uint16_t)*2 + proto_len + 1;
+ rd.len = sizeof(uint32_t)*2 + proto_len + 1;
data = malloc(sizeof(uint8_t)*rd.len);
if (data == NULL) {
nret = NSS_STATUS_TRYAGAIN;