]> git.armaanb.net Git - opendoas.git/blobdiff - doas_pam.c
Fix horrible mistake
[opendoas.git] / doas_pam.c
index 5c6fb288b9e36d357ba47d44cc3b3f77bce28d2c..473e1fde525829863109bf85722ffe6dee1aa051 100644 (file)
@@ -159,7 +159,7 @@ doas_pam(char *name, int interactive, int nopass)
                        ret = pam_end(pamh, ret);
                        if (ret != PAM_SUCCESS)
                                errx(1, "pam_end(): %s\n", pam_strerror(pamh, ret));
-                       return 1;
+                       return 0;
                }
        }