From 0a78bac242d0172a858d6b65402276aa734a4671 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 22 Mar 2012 17:17:12 +0100 Subject: AUTOFS: fix copy-and-paste bug in the autofs client --- src/sss_client/autofs/sss_autofs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c index 631e88a4..e1810466 100644 --- a/src/sss_client/autofs/sss_autofs.c +++ b/src/sss_client/autofs/sss_autofs.c @@ -373,7 +373,7 @@ _sss_getautomntbyname_r(const char *key, char **value, void *context) goto out; } - ret = sss_strnlen(ctx->mapname, MAX_AUTOMNTKEYNAME_LEN, &key_len); + ret = sss_strnlen(key, MAX_AUTOMNTKEYNAME_LEN, &key_len); if (ret != 0) { ret = EINVAL; goto out; -- cgit