* gensec_security a talloc child */
es->gensec_security = talloc_move(NULL,
&auth_generic_state->gensec_security);
- smb1cli_conn_set_encryption(cli->conn, es);
- es = NULL;
+ smb1cli_conn_set_encryption(cli->conn, &es);
}
fail:
DATA_BLOB param_out = data_blob_null;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct auth_generic_state *auth_generic_state;
+<<<<<<< HEAD
struct smb_trans_enc_state *es = talloc_zero(NULL, struct smb_trans_enc_state);
+=======
+ struct smb_trans_enc_state *es;
+>>>>>>> 7efc635... s3-libsmb: Convert struct smb_trans_enc_state to talloc
+ es = talloc_zero(NULL, struct smb_trans_enc_state);
if (!es) {
return NT_STATUS_NO_MEMORY;
}
* gensec_security a talloc child */
es->gensec_security = talloc_move(es,
&auth_generic_state->gensec_security);
- smb1cli_conn_set_encryption(cli->conn, es);
- es = NULL;
+ TALLOC_FREE(auth_generic_state);
+ smb1cli_conn_set_encryption(cli->conn, &es);
}
fail:
TALLOC_FREE(es);