summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-22 17:17:12 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-26 20:17:34 -0400
commit1e46d25741ef548342ba5b566ae21810073abffd (patch)
tree132db3fa61d29adef9648453c941f37232c90ba0
parent4978a8ea110bc95df31caea5b96e930a2292af4c (diff)
downloadsssd_unused-1e46d25741ef548342ba5b566ae21810073abffd.tar.gz
sssd_unused-1e46d25741ef548342ba5b566ae21810073abffd.tar.xz
sssd_unused-1e46d25741ef548342ba5b566ae21810073abffd.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 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;