summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-10-03 14:04:38 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-10-03 14:04:38 +0100
commit926e560716c56aa0ee6492478ead15f9e6c07fe2 (patch)
tree95a34023cca4e98e9730976db0b9c18e5ab1b6b8 /content/fetchers
parent952d2a524cc86c96d3a429ba0b39675d2bd3569b (diff)
downloadnetsurf-926e560716c56aa0ee6492478ead15f9e6c07fe2.tar.gz
netsurf-926e560716c56aa0ee6492478ead15f9e6c07fe2.tar.bz2
about: Check senddata return in blank handler
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/about/blank.c3
1 files changed, 2 insertions, 1 deletions
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);