r24780: More work allowing libutil to be used by external users.
[kai/samba.git] / source4 / librpc / rpc / dcerpc_smb2.c
index 53f731f8b363913fec0035b9bff51c3762ae351b..dcfee1f2235e66c03091e39ef57fceb9fe10192d 100644 (file)
@@ -92,10 +92,9 @@ static void smb2_read_callback(struct smb2_request *req)
                return;
        }
 
-       status = data_blob_append(state, &state->data, 
-                                 io.out.data.data, io.out.data.length);
-       if (NT_STATUS_IS_ERR(status)) {
-               pipe_dead(state->c, status);
+       if (!data_blob_append(state, &state->data, 
+                                 io.out.data.data, io.out.data.length)) {
+               pipe_dead(state->c, NT_STATUS_NO_MEMORY);
                talloc_free(state);
                return;
        }