autofs-5.1.6 - fix typo in open_sss_lib()

From: Ian Kent <raven@themaw.net>

Fix obvious typo in modules/lookup_sss.c:open_sss_lib().

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG            |    1 +
 modules/lookup_sss.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index ebe20cd7..c67eddea 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -20,6 +20,7 @@ xx/xx/2020 autofs-5.1.7
 - fix configure force shutdown check.
 - fix crash in sun_mount().
 - fix lookup_nss_read_master() nsswicth check return.
+- fix typo in open_sss_lib().
 
 07/10/2019 autofs-5.1.6
 - support strictexpire mount option.
diff --git a/modules/lookup_sss.c b/modules/lookup_sss.c
index ce60acd3..908752b6 100644
--- a/modules/lookup_sss.c
+++ b/modules/lookup_sss.c
@@ -91,7 +91,7 @@ static int open_sss_lib(struct lookup_context *ctxt)
 		goto lib_names_fail;
 
 	ctxt->endautomntent = (endautomntent_t) dlsym(dh, "_sss_endautomntent");
-	if (!ctxt->setautomntent)
+	if (!ctxt->endautomntent)
 		goto lib_names_fail;
 
 	return 0;
