diff options
author | Thomas Osterried <thomas@osterried.de> | 2009-01-24 10:48:43 +0000 |
---|---|---|
committer | Thomas Osterried <thomas@osterried.de> | 2009-01-24 10:48:43 +0000 |
commit | 30ec781048430070a10c2aa4844929059240e65a (patch) | |
tree | 83350205c15288bad94692d42ffd0c0aea27276c /call/call.c | |
parent | 4811124e8b043c61c8a9a4397ad9a8427b02d15a (diff) |
small fix
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) { |