diff options
author | Michael Adam <obnox@samba.org> | 2007-09-21 11:58:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:57 -0500 |
commit | 30fc6400578a55ff4fad1ee9d292cbeb54aee744 (patch) | |
tree | 5af75a64856a03f01f68c049fb40c2db556e63fa /source3 | |
parent | 91b276e4eafd337c7a4a097be85ef6b333936f98 (diff) | |
download | samba-30fc6400578a55ff4fad1ee9d292cbeb54aee744.tar.gz samba-30fc6400578a55ff4fad1ee9d292cbeb54aee744.tar.bz2 samba-30fc6400578a55ff4fad1ee9d292cbeb54aee744.zip |
r25286: Fix one more caller of unistr2_to_ascii() that passed
in -1 for maxlen.
Michael
(This used to be commit cd3d652d0d7609fc369ed0743c1fc54c87558438)
Diffstat (limited to 'source3')
-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)); |