summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-07 15:05:13 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-07 17:25:22 +0100
commitcf10b80d63916e5686545156264a6ed2306cc5bb (patch)
tree2cd052bea739631094ec031f67df6a55460bbeec
parentd5c167e5120e58828fc3a696c8a3d1d4a48c6b9b (diff)
downloadsssd-cf10b80d63916e5686545156264a6ed2306cc5bb.tar.gz
sssd-cf10b80d63916e5686545156264a6ed2306cc5bb.tar.bz2
sssd-cf10b80d63916e5686545156264a6ed2306cc5bb.zip
SUDO: strdup the input variable
https://fedorahosted.org/sssd/ticket/1701
-rw-r--r--src/providers/ldap/sdap_sudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index acdc9a91..4d83978d 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);