summaryrefslogtreecommitdiffstats
path: root/daemon/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/base64.c')
-rw-r--r--daemon/base64.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/base64.c b/daemon/base64.c
index 7e07a6ad..f55e1f51 100644
--- a/daemon/base64.c
+++ b/daemon/base64.c
@@ -77,8 +77,11 @@ do_base64_in (const char *file)
return -1;
}
if (r == -2) { /* cancellation from library */
+ /* This error is ignored by the library since it initiated the
+ * cancel. Nevertheless we must send an error reply here.
+ */
+ reply_with_error ("file upload cancelled");
pclose (fp);
- /* Do NOT send any error. */
return -1;
}