Fix failures setting a random password
[kai/samba.git] / source4 / libcli / auth / smbencrypt.c
index b902dddb0f7f328a35d3bd4b6fc88267c76a076b..bbb363e0dd42019f42b8c5f0fba2d476a3f47200 100644 (file)
@@ -585,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;
        }