diff options
-rw-r--r-- | tests/libtest/lib556.c | 6 | ||||
-rw-r--r-- | tests/server/tftpd.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index da29a4678..67da87f40 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -84,9 +84,11 @@ int test(char *URL) sleep(1); /* avoid ctl-10 dump */ #endif - if(iolen) + if(iolen) { /* send received stuff to stdout */ - write(STDOUT_FILENO, buf, iolen); + if(!write(STDOUT_FILENO, buf, iolen)) + break; + } total += iolen; } while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129)); diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 9a4717723..92fb717b7 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -605,7 +605,8 @@ static ssize_t write_behind(struct testcase *test, int convert) } /* formerly putc(c, file); */ - write(test->ofile, &c, 1); + if(1 != write(test->ofile, &c, 1)) + break; skipit: prevchar = c; } |