Fix failures setting a random password
[kai/samba.git] / source4 / libcli / auth / smbencrypt.c
index 2803aaff5e3bbb82f1eb46ecc94d090f21c02847..bbb363e0dd42019f42b8c5f0fba2d476a3f47200 100644 (file)
@@ -27,7 +27,6 @@
 #include "auth/ntlmssp/msrpc_parse.h"
 #include "../lib/crypto/crypto.h"
 #include "libcli/auth/libcli_auth.h"
-#include "param/param.h"
 
 /*
    This implements the X/Open SMB password encryption
@@ -586,7 +585,7 @@ bool extract_pw_from_buffer(TALLOC_CTX *mem_ctx,
 
        *new_pass = data_blob_talloc(mem_ctx, &in_buffer[512 - byte_len], byte_len);
 
-       if (!*new_pass->data) {
+       if (!new_pass->data) {
                return false;
        }