From 0b91f3916430d0271eab867675d44c5439de40c2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 29 Aug 2007 13:07:03 +0000 Subject: r24780: More work allowing libutil to be used by external users. (This used to be commit 31993cf67b816a184a4a4e92ef8ca2532c797190) --- source4/web_server/http.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/web_server/http.c') 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; } -- cgit