diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-06-01 00:15:00 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-06-01 00:15:00 +0200 |
commit | 090a8585370c7857a193467fc057828b82ec358f (patch) | |
tree | 23d5beb2174c3561ee913a7e28d35755d1e09c31 | |
parent | 4964a685e75c75d662bb0d4f1bb3fd126f49eca2 (diff) | |
download | libpam-pwdfile-090a8585370c7857a193467fc057828b82ec358f.tar.gz |
move opening brace out of ifdef to make code folding work
-rw-r--r-- | pam_pwdfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pam_pwdfile.c b/pam_pwdfile.c index ed7dd15..d574db0 100644 --- a/pam_pwdfile.c +++ b/pam_pwdfile.c @@ -201,10 +201,11 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, #ifdef USE_CRYPT_R crypt_buf.initialized = 0; - if (!(crypted_password = crypt_r(password, stored_crypted_password, &crypt_buf))) { + if (!(crypted_password = crypt_r(password, stored_crypted_password, &crypt_buf))) #else - if (!(crypted_password = crypt(password, stored_crypted_password))) { + if (!(crypted_password = crypt(password, stored_crypted_password))) #endif + { pam_syslog(pamh, LOG_ERR, "crypt() failed"); free(linebuf); return PAM_AUTH_ERR; |