diff options
author | Jeremy Allison <jra@samba.org> | 1998-07-06 22:48:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-07-06 22:48:21 +0000 |
commit | 7a2b695bcbf80f192eea8db09a3f30c2cf75412d (patch) | |
tree | ba67036ae77b95e46977aa5a842cb9551b8fb972 /source3/rpc_parse/parse_misc.c | |
parent | 5b11dbd8f66040de091b705a5814566e029a6fa6 (diff) | |
download | samba-7a2b695bcbf80f192eea8db09a3f30c2cf75412d.tar.gz samba-7a2b695bcbf80f192eea8db09a3f30c2cf75412d.tar.bz2 samba-7a2b695bcbf80f192eea8db09a3f30c2cf75412d.zip |
password.c: Fixes to allow Win95 clients to have lm encrypted passwords
recognised.
lib/rpc/client/cli_login.c: Fix debug comment.
lib/rpc/parse/parse_misc.c: Fix for passing null pointers.
lib/rpc/parse/parse_net.c: Send correct password lengths when called
from Win95.
Jeremy.
(This used to be commit ad1848b35521b3d478ea3226db818a1edef78254)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index 35ca6c9553..3c83382f0c 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -369,13 +369,14 @@ creates a STRING2 structure. ********************************************************************/ void make_string2(STRING2 *str, char *buf, int len) { - /* set up string lengths. */ - str->str_max_len = len; - str->undoc = 0; - str->str_str_len = len; - - /* store the string */ - memcpy(str->buffer, buf, len); + /* set up string lengths. */ + str->str_max_len = len; + str->undoc = 0; + str->str_str_len = len; + + /* store the string */ + if(len != 0) + memcpy(str->buffer, buf, len); } /******************************************************************* |