summaryrefslogtreecommitdiff
path: root/src/sss_client/autofs
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:21 -0400
commit0a78bac242d0172a858d6b65402276aa734a4671 (patch)
tree1b546a5f970fe042989a3747b872f050c79e6dc2 /src/sss_client/autofs
parent40d4e954b09e6f08f101acf3d03937d2bd7d847e (diff)
downloadsssd-0a78bac242d0172a858d6b65402276aa734a4671.tar.gz
sssd-0a78bac242d0172a858d6b65402276aa734a4671.tar.bz2
sssd-0a78bac242d0172a858d6b65402276aa734a4671.zip
AUTOFS: fix copy-and-paste bug in the autofs client
Diffstat (limited to 'src/sss_client/autofs')
-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;