Remove a number of NT_STATUS_HAVE_NO_MEMORY_AND_FREE macros from the codebase.
[kai/samba-autobuild/.git] / source4 / wrepl_server / wrepl_in_call.c
index e34922e270c7ba14297aeab341c7ae58a75df796..111d9a405ad1e52645f7777275eaa18f561af06e 100644 (file)
@@ -361,7 +361,10 @@ static NTSTATUS wreplsrv_in_update(struct wreplsrv_in_call *call)
        wrepl_out->sock                 = wrepl_socket_init(wrepl_out,
                                                            wrepl_in->conn->event.ctx);
                                                            
-       NT_STATUS_HAVE_NO_MEMORY_AND_FREE(wrepl_out->sock, update_state);
+       if (wrepl_out->sock == NULL) {
+               TALLOC_FREE(update_state);
+               return NT_STATUS_NO_MEMORY;
+       }
 
        TALLOC_FREE(wrepl_in->send_queue);