summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-28 05:49:36 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-28 05:49:36 +0000
commitb1ade347057438e05fcb412ba6d4c59d9ad0a4db (patch)
tree5082daecc94d87bbcb7f6d37a80e222d93123bb9 /source3
parent90736eb8be3db3fd889e9cea4a4a1714fc8574dd (diff)
downloadsamba-b1ade347057438e05fcb412ba6d4c59d9ad0a4db.tar.gz
samba-b1ade347057438e05fcb412ba6d4c59d9ad0a4db.tar.bz2
samba-b1ade347057438e05fcb412ba6d4c59d9ad0a4db.zip
fixed a core dump in server level security
(This used to be commit e790bb21d3895bef97522b68c6f00812e6c286f2)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index ba4bedf8ab..0fceac70e2 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -258,8 +258,10 @@ static BOOL cli_session_setup_nt1(struct cli_state *cli, char *user,
/* non encrypted password supplied. */
passlen = 24;
ntpasslen = 24;
- clistr_push(cli, pword, pass, sizeof(pword), STR_TERMINATE);
- clistr_push(cli, ntpword, ntpass, sizeof(ntpword), STR_TERMINATE);
+ clistr_push(cli, pword,
+ pass?pass:"", sizeof(pword), STR_TERMINATE|STR_ASCII);
+ clistr_push(cli, ntpword,
+ ntpass?ntpass:"", sizeof(ntpword), STR_TERMINATE|STR_ASCII);
SMBencrypt((uchar *)pword,cli->secblob.data,(uchar *)pword);
SMBNTencrypt((uchar *)ntpword,cli->secblob.data,(uchar *)ntpword);
} else {