From 926e560716c56aa0ee6492478ead15f9e6c07fe2 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 3 Oct 2020 14:04:38 +0100 Subject: about: Check senddata return in blank handler Signed-off-by: Daniel Silverstone --- content/fetchers/about/blank.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/fetchers/about/blank.c b/content/fetchers/about/blank.c index b7ba52eaf..8ad774512 100644 --- a/content/fetchers/about/blank.c +++ b/content/fetchers/about/blank.c @@ -48,7 +48,8 @@ bool fetch_about_blank_handler(struct fetch_about_context *ctx) if (fetch_about_send_header(ctx, "Content-Type: text/html")) goto fetch_about_blank_handler_aborted; - fetch_about_senddata(ctx, (const uint8_t *) buffer, strlen(buffer)); + if (fetch_about_senddata(ctx, (const uint8_t *) buffer, strlen(buffer)) != NSERROR_OK) + goto fetch_about_blank_handler_aborted; fetch_about_send_finished(ctx); -- cgit v1.2.3