359d341a35
- Ensure that the RPM creates the /var/lib/sss/mc directory - Add support for Netscape password warning expiration control - Rebuild against libldb 1.1.6
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 33c35e25ba25100dcd77562055eea2a0cb1197a9 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
Date: Mon, 14 May 2012 15:53:18 +0200
|
|
Subject: [PATCH 07/19] NSS: keep a pointer to body after body is reallocated
|
|
|
|
---
|
|
src/responder/nss/nsssrv_cmd.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
|
|
index f36a9a322ab92144c93b8cb9041d7a28515cc85d..43e82ae3ad1d98d440c076513ffb78ed46feb949 100644
|
|
--- a/src/responder/nss/nsssrv_cmd.c
|
|
+++ b/src/responder/nss/nsssrv_cmd.c
|
|
@@ -1919,6 +1919,9 @@ static int fill_grent(struct sss_packet *packet,
|
|
num++;
|
|
|
|
if (gr_mmap_cache) {
|
|
+ /* body was reallocated, so fullname might be pointing to
|
|
+ * where body used to be, not where it is */
|
|
+ to_sized_string(&fullname, (const char *)&body[rzero+STRS_ROFFSET]);
|
|
ret = sss_mmap_cache_gr_store(nctx->grp_mc_ctx,
|
|
&fullname, &pwfield, gid, memnum,
|
|
(char *)&body[rzero] + STRS_ROFFSET +
|
|
--
|
|
1.7.10.1
|
|
|