From 84bff29a918e543823e1aefce3dde5e66a45e286 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 7 Dec 2012 15:05:13 +0100 Subject: SUDO: strdup the input variable https://fedorahosted.org/sssd/ticket/1701 --- src/providers/ldap/sdap_sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit