about: Check senddata return in blank handler

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-10-03 14:04:38 +01:00
parent 952d2a524c
commit 926e560716
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
1 changed files with 2 additions and 1 deletions

View File

@ -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);