[SSSD] [PATCH] NSS: Fix service enumeration
Jakub Hrozek
jhrozek at redhat.com
Tue Oct 29 09:05:13 UTC 2013
The code wrote into the middle of the packet to a space that was already
reserved and allocated but then still advanced the pointer to the
buffer.
https://fedorahosted.org/sssd/ticket/2124
-------------- next part --------------
>From d533bb267ffb1447503f6af671a6d2d2db9ddd10 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Tue, 29 Oct 2013 07:10:30 +0100
Subject: [PATCH] NSS: Fix service enumeration
The code wrote into the middle of the packet to a space that was already
reserved and allocated but then still advanced the pointer to the buffer.
https://fedorahosted.org/sssd/ticket/2124
---
src/responder/nss/nsssrv_services.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index 79caa7d08cdfff25112eedab98a0419f1b1d154e..ff588592c814dc43e30f9e57ddab230efff15df2 100644
--- a/src/responder/nss/nsssrv_services.c
+++ b/src/responder/nss/nsssrv_services.c
@@ -752,7 +752,7 @@ fill_service(struct sss_packet *packet,
written_aliases++;
talloc_zfree(tmpstr);
}
- SAFEALIGN_SET_UINT32(&body[aptr], written_aliases, &rsize);
+ SAFEALIGN_SET_UINT32(&body[aptr], written_aliases, NULL);
num++;
}
--
1.8.3.1
More information about the sssd-devel
mailing list