r24780: More work allowing libutil to be used by external users.
[kai/samba.git] / source4 / web_server / http.c
index d5d78544e0e4043b297b4d85852a3923a93e7d3f..502d5de2d0646480290950e6a0155fd9317134b4 100644 (file)
@@ -196,9 +196,8 @@ static int http_mapToStorage(EspHandle handle, char *path, int len, const char *
 static int http_writeBlock(EspHandle handle, const char *buf, int size)
 {
        struct websrv_context *web = talloc_get_type(handle, struct websrv_context);
-       NTSTATUS status;
-       status = data_blob_append(web, &web->output.content, buf, size);
-       if (!NT_STATUS_IS_OK(status)) return -1;
+       if (!data_blob_append(web, &web->output.content, buf, size))
+               return -1;
        return size;
 }