diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/pampass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index ac3aa3aa64..9b8faf1609 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -455,6 +455,7 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho { int pam_error; const char *our_rhost; + char addr[INET6_ADDRSTRLEN]; *pamh = (pam_handle_t *)NULL; @@ -469,7 +470,7 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho if (rhost == NULL) { our_rhost = client_name(); if (strequal(our_rhost,"UNKNOWN")) - our_rhost = client_addr(); + our_rhost = client_addr(addr); } else { our_rhost = rhost; } |