commit 0ffb5eafed724886ae346e18ea9338ebc1e3e5ee
parent 77cfd99a75372cb70788a836f1319c16d93112da
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 20 Jun 2015 19:59:27 +0200
Make PUT work again.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sieve.c b/sieve.c
@@ -567,9 +567,11 @@ sievemain(int argc, char *argv[])
if (status & DOPUT) {
if (argc > 1) {
data = readfile(argv[1], &len);
+ if (data == NULL)
edie("readfile");
} else {
data = readstdin(&len);
+ if (data == NULL)
edie("readstdin");
}
if (len < 1)