diff options
Diffstat (limited to 'call/call.c')
-rw-r--r-- | call/call.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/call/call.c b/call/call.c index 5fad944..af7cb8d 100644 --- a/call/call.c +++ b/call/call.c @@ -2026,10 +2026,13 @@ out_fd: int ret = write(fd, buf+offset, bytes-offset); if (ret == -1) { perror("write"); + offset=-1; break; } offset += ret; } + if (offset == -1) + break; } } if (uploadfile != -1) { |