1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

r25286: Fix one more caller of unistr2_to_ascii() that passed

in -1 for maxlen.

Michael
This commit is contained in:
Michael Adam 2007-09-21 11:58:25 +00:00 committed by Gerald (Jerry) Carter
parent 76cb05deec
commit cd3d652d0d

View File

@ -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));