summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-07 15:05:13 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-14 17:45:19 +0100
commit84bff29a918e543823e1aefce3dde5e66a45e286 (patch)
tree02dfed3432a1a583fa7e553516fd8d6afbb2152e /src/providers/ldap
parent2aaea001cbab63a47b314750235dc7f5347064be (diff)
downloadsssd-84bff29a918e543823e1aefce3dde5e66a45e286.tar.gz
sssd-84bff29a918e543823e1aefce3dde5e66a45e286.tar.xz
sssd-84bff29a918e543823e1aefce3dde5e66a45e286.zip
SUDO: strdup the input variable1.9.2-42
https://fedorahosted.org/sssd/ticket/1701
Diffstat (limited to 'src/providers/ldap')
-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 82c8e9374..0ff5a432c 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);