summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-12-15 23:26:31 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-12-15 23:26:31 +0100
commit8bfe1dd9c7d76ef0f953f41ffc306596a55c732c (patch)
treea0cfd1520c9df0e91fd760fbdcedb5c95a12e591
parentb695b9b51ec0559b7023855f1f87e0ef04723e66 (diff)
changed return value in case of dlopen failedHEADmaster
a constant is defined for that purpose, use it Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--multi_auth.c2
1 files changed, 1 insertions, 1 deletions
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);