r25286: Fix one more caller of unistr2_to_ascii() that passed
authorMichael Adam <obnox@samba.org>
Fri, 21 Sep 2007 11:58:25 +0000 (11:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:57 +0000 (12:30 -0500)
in -1 for maxlen.

Michael
(This used to be commit cd3d652d0d7609fc369ed0743c1fc54c87558438)

source3/smbd/sesssetup.c

index 520835bef70e3291f8a8ffdb4dd113d274cc2eb0..20021ec7f78c302c3004429181d53cfcba6f1fa0 100644 (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));