diff options
-rw-r--r-- | source3/smbd/sesssetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 520835bef7..20021ec7f7 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -400,7 +400,7 @@ static void reply_spnego_kerberos(connection_struct *conn, if (logon_info && logon_info->info3.hdr_logon_dom.uni_str_len) { unistr2_to_ascii(netbios_domain_name, &logon_info->info3.uni_logon_dom, - -1); + sizeof(netbios_domain_name)); domain = netbios_domain_name; DEBUG(10, ("Mapped to [%s] (using PAC)\n", domain)); |