X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=libcli%2Fauth%2Fsmbencrypt.c;fp=libcli%2Fauth%2Fsmbencrypt.c;h=f5a73feadcd7ccc4a630c88209adf4d8c593a841;hp=bcb40acda19c4a6665259b8a2406c89178fa623f;hb=6c8f7e400540421320e3cbd80f7e1a9551dfed14;hpb=a19966375aeab5627308379219361de7053189fd diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index bcb40acda19..f5a73feadcd 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -538,7 +538,7 @@ bool encode_pw_buffer(uint8_t buffer[516], const char *password, int string_flag /* the incoming buffer can be any alignment. */ string_flags |= STR_NOALIGN; - new_pw_len = push_string(new_pw, new_pw, + new_pw_len = push_string(new_pw, password, sizeof(new_pw), string_flags);