]> granicus.if.org Git - curl/commit
sendrecv: treat all negative values from send/recv as errors
authorDaniel Stenberg <daniel@haxx.se>
Fri, 18 Jun 2010 22:18:14 +0000 (00:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Jun 2010 22:18:14 +0000 (00:18 +0200)
commit1b15b31c8631a4a271f15c4261331dcebec9ba47
treefe80459c08d08a23ca6bcef0c2238016ecf95910
parente6d85923c1e9d4a9b76b67a4b31f0815e051b071
sendrecv: treat all negative values from send/recv as errors

For example the libssh2 based functions return other negative
values than -1 to signal errors and it is important that we catch
them properly. Right before this, various failures from libssh2
were treated as negative download amounts which caused havoc.
lib/sendf.c