Skip to content

Instantly share code, notes, and snippets.

@konsolebox
Created May 23, 2024 05:06
Show Gist options
  • Save konsolebox/3eeb2b640efc84dbe4987cc8f701ab22 to your computer and use it in GitHub Desktop.
Save konsolebox/3eeb2b640efc84dbe4987cc8f701ab22 to your computer and use it in GitHub Desktop.
diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c
index 859b3da..7fbdc0a 100644
--- a/modules/pam_pwhistory/opasswd.c
+++ b/modules/pam_pwhistory/opasswd.c
@@ -128,9 +128,9 @@ static int
compare_password(const char *newpass, const char *oldpass)
{
char *outval;
+ int retval;
#ifdef HAVE_CRYPT_R
struct crypt_data output;
- int retval;
output.initialized = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment