Hi,

Steeve found some unusual behaviour during his test which led to the
shutdown of the whole SSSD. The attached patch should fix it.

bye,
Sumit
From 005ac171d7bcc57db262f9df50a8ba22b01ec510 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sb...@redhat.com>
Date: Wed, 30 Oct 2013 16:49:26 +0100
Subject: [PATCH] be_spy_create: free be_req and not the long living data

---
 src/providers/data_provider_be.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 2f27c50..5aef230 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -275,7 +275,7 @@ static errno_t be_spy_create(TALLOC_CTX *mem_ctx, struct 
be_req *be_req)
         ret = ENOMEM;
         goto done;
     }
-    cli_spy->freectx = mem_ctx;
+    cli_spy->freectx = be_req;
 
     /* Also create a spy on the be_req so that we
      * can free the other spy when the be_req
-- 
1.8.3.1

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to