Remove all uses of the NT_STATUS_NOT_OK_RETURN_AND_FREE macro from the codebase.
[bbaumbach/samba-autobuild/.git] / source4 / wrepl_server / wrepl_in_call.c
index 111d9a405ad1e52645f7777275eaa18f561af06e..9fc723fd31e01eccae7c0ce433a96d7f05c76de7 100644 (file)
@@ -369,7 +369,10 @@ static NTSTATUS wreplsrv_in_update(struct wreplsrv_in_call *call)
        TALLOC_FREE(wrepl_in->send_queue);
 
        status = wrepl_socket_donate_stream(wrepl_out->sock, &wrepl_in->tstream);
-       NT_STATUS_NOT_OK_RETURN_AND_FREE(status, update_state);
+       if (!NT_STATUS_IS_OK(status)) {
+               TALLOC_FREE(update_state);
+               return status;
+       }
 
        update_state->wrepl_in                  = wrepl_in;
        update_state->wrepl_out                 = wrepl_out;