diff options
Diffstat (limited to 'source3/pam_smbpass/pam_smb_auth.c')
-rw-r--r-- | source3/pam_smbpass/pam_smb_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c index 88ff9851f5..feb469792d 100644 --- a/source3/pam_smbpass/pam_smb_auth.c +++ b/source3/pam_smbpass/pam_smb_auth.c @@ -44,7 +44,7 @@ #define AUTH_RETURN \ do { \ /* Restore application signal handler */ \ - CatchSignal(SIGPIPE, SIGNAL_CAST oldsig_handler); \ + CatchSignal(SIGPIPE, oldsig_handler); \ if(ret_data) { \ *ret_data = retval; \ pam_set_data( pamh, "smb_setcred_return" \ @@ -92,7 +92,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, /* we need to do this before we call AUTH_RETURN */ /* Getting into places that might use LDAP -- protect the app from a SIGPIPE it's not expecting */ - oldsig_handler = CatchSignal(SIGPIPE, SIGNAL_CAST SIG_IGN); + oldsig_handler = CatchSignal(SIGPIPE, SIG_IGN); /* get the username */ retval = pam_get_user( pamh, &name, "Username: " ); |