Nikolai pinged me about sudo_disable_host filter not working and I think
this is the culprit.
>From ea59ae35914e79bdc661cc23916444416ef9c52c Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <[email protected]>
Date: Fri, 7 Dec 2012 15:05:13 +0100
Subject: [PATCH] SUDO: strdup the input variable
---
src/providers/ldap/sdap_sudo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index
acdc9a91c64133f664db665584a1a9b42cb2ccf2..4d83978dd315f337e95fe49ebbd20c79f22de8ff
100644
--- a/src/providers/ldap/sdap_sudo.c
+++ b/src/providers/ldap/sdap_sudo.c
@@ -415,7 +415,7 @@ static char *sdap_sudo_get_filter(TALLOC_CTX *mem_ctx,
char *filter = NULL;
if (!sudo_ctx->use_host_filter) {
- return talloc_strdup(mem_ctx, filter);
+ return talloc_strdup(mem_ctx, rule_filter);
}
tmp_ctx = talloc_new(NULL);
--
1.8.0.1
_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel