diff options
Diffstat (limited to 'source4/web_server/http.c')
-rw-r--r-- | source4/web_server/http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c index d5d78544e0..502d5de2d0 100644 --- a/source4/web_server/http.c +++ b/source4/web_server/http.c @@ -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; } |