diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-15 06:46:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-15 06:46:43 +0000 |
commit | a4ba0496846924df4688cf3678940ec3b14e6376 (patch) | |
tree | e3a34881f22729114ea10b2376747dac62b7ad15 /source3 | |
parent | dc7c505dec59329c5dde35763febab3547f6d642 (diff) | |
download | samba-a4ba0496846924df4688cf3678940ec3b14e6376.tar.gz samba-a4ba0496846924df4688cf3678940ec3b14e6376.tar.bz2 samba-a4ba0496846924df4688cf3678940ec3b14e6376.zip |
Specify buffer sizes
(This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 36b6f609f5..763878f9b3 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -66,7 +66,7 @@ static BOOL cli_session_setup_lanman2(struct cli_state *cli, const char *user, memcpy(pword, pass, passlen); } else if (passlen > 0) { /* Plaintext mode needed, assume plaintext supplied. */ - passlen = clistr_push(cli, pword, pass, -1, STR_TERMINATE); + passlen = clistr_push(cli, pword, pass, sizeof(pword), STR_TERMINATE); } /* send a session setup command */ @@ -778,7 +778,7 @@ BOOL cli_send_tconX(struct cli_state *cli, /* * Non-encrypted passwords - convert to DOS codepage before using. */ - passlen = clistr_push(cli, pword, pass, -1, STR_TERMINATE); + passlen = clistr_push(cli, pword, pass, sizeof(pword), STR_TERMINATE); } else { memcpy(pword, pass, passlen); } |