summaryrefslogtreecommitdiffstats
path: root/source/auth/pampass.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/auth/pampass.c')
-rw-r--r--source/auth/pampass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/auth/pampass.c b/source/auth/pampass.c
index 9b8faf16092..c7ec79b9694 100644
--- a/source/auth/pampass.c
+++ b/source/auth/pampass.c
@@ -470,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(addr);
+ our_rhost = client_addr(addr,sizeof(addr));
} else {
our_rhost = rhost;
}