summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-22 17:17:12 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-04-20 13:37:16 -0400
commit8f05e1467c336244e4e86955312eb1d71a95d1e1 (patch)
tree3d8d7c4f5c488c4049733525374cc33c7f37d950
parentdf632223474d3c1937babbc7193378925e488709 (diff)
downloadsssd-8f05e1467c336244e4e86955312eb1d71a95d1e1.tar.gz
sssd-8f05e1467c336244e4e86955312eb1d71a95d1e1.tar.xz
sssd-8f05e1467c336244e4e86955312eb1d71a95d1e1.zip
AUTOFS: fix copy-and-paste bug in the autofs client
-rw-r--r--src/sss_client/autofs/sss_autofs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c
index 631e88a45..e1810466b 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;