From 8bfe1dd9c7d76ef0f953f41ffc306596a55c732c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 15 Dec 2015 23:26:31 +0100 Subject: changed return value in case of dlopen failed a constant is defined for that purpose, use it Signed-off-by: Olivier Gayot --- multi_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'multi_auth.c') diff --git a/multi_auth.c b/multi_auth.c index 270e773..f17fbf3 100644 --- a/multi_auth.c +++ b/multi_auth.c @@ -50,7 +50,7 @@ static int multi_auth_init(pam_handle_t *pamh, int flags, if (mod->dl_handler == NULL) { fprintf(stderr, "%s: %m\n", mod->path); - return PAM_SYSTEM_ERR; + return PAM_OPEN_ERR; } mod->args.callback = dlsym(mod->dl_handler, mod->symbol); -- cgit v1.2.3