diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-08-08 09:21:57 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-08-08 11:05:16 +0200 |
commit | ac9f06c9b93ada5d0e8331a122e199a8f69049a3 (patch) | |
tree | 56d7ac2f490f1fc13de0f37130c00c9a5005b225 | |
parent | 66412bfc76dc8b7337f3690ec75b14542a3df11e (diff) | |
download | samba-ac9f06c9b93ada5d0e8331a122e199a8f69049a3.tar.gz samba-ac9f06c9b93ada5d0e8331a122e199a8f69049a3.tar.bz2 samba-ac9f06c9b93ada5d0e8331a122e199a8f69049a3.zip |
s3:smbd: fix valgrind warning, sizeof(16) != 16...
metze
-rw-r--r-- | source3/smbd/negprot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 4ff4eee404..e61d5198ac 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -242,7 +242,7 @@ DATA_BLOB negprot_spnego(TALLOC_CTX *ctx, struct smbd_server_connection *sconn) #ifdef DEVELOPER /* Fix valgrind 'uninitialized bytes' issue. */ slen = strlen(dos_name); - if (slen < sizeof(16)) { + if (slen < 16) { memset(blob_out.data+slen, '\0', 16 - slen); } #endif |