diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 16:42:17 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:15 -0700 |
commit | df023b8657cab232df88d3656aa5d87676bb7254 (patch) | |
tree | acaedf7d93de593d4d843f80e7c03ea6f1ec99a7 /libcli/auth | |
parent | a3e913ae8bfaa88f5b571f3347f3357a9ff02ed1 (diff) | |
download | samba-df023b8657cab232df88d3656aa5d87676bb7254.tar.gz samba-df023b8657cab232df88d3656aa5d87676bb7254.tar.bz2 samba-df023b8657cab232df88d3656aa5d87676bb7254.zip |
Tidy up some missing checks for NULL in strlcpy.
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/smbencrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index c59bc515ba..0cd836302b 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -134,7 +134,7 @@ bool E_deshash(const char *passwd, uint8_t p16[16]) tmpbuf = strupper_talloc(mem_ctx, passwd); if (tmpbuf == NULL) { /* Too many callers don't check this result, we need to fill in the buffer with something */ - strlcpy((char *)dospwd, passwd, sizeof(dospwd)); + strlcpy((char *)dospwd, passwd ? passwd : "", sizeof(dospwd)); E_P16(dospwd, p16); return false; } |