diff options
Diffstat (limited to 'source3/auth/pampass.c')
-rw-r--r-- | source3/auth/pampass.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index e08670f481..6c7294dd8b 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -479,9 +479,10 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho #ifdef PAM_RHOST if (rhost == NULL) { - our_rhost = client_name(get_client_fd()); + our_rhost = client_name(smbd_server_fd()); if (strequal(our_rhost,"UNKNOWN")) - our_rhost = client_addr(get_client_fd(),addr,sizeof(addr)); + our_rhost = client_addr(smbd_server_fd(), addr, + sizeof(addr)); } else { our_rhost = rhost; } |