]> git.ipfire.org Git - thirdparty/curl.git/commit
upload: missing rewind call could make libcurl hang
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2016 11:57:15 +0000 (13:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2016 11:57:15 +0000 (13:57 +0200)
commit3e005a8555e8a82784b22dea50fbc7d0bb0ccd26
tree7a4664116f3729d97117a0e87461e8e45488034d
parent7db9782dd692c01da2135bf7e466c6804d399b1a
upload: missing rewind call could make libcurl hang

When an upload is done, there are two places where that can be detected
and only one of them would rewind the input stream - which sometimes is
necessary for example when doing NTLM HTTP POSTs and more.

This could then end up libcurl hanging.

Figured-out-by: Isaac Boukris
Reported-by: Anatol Belski
Fixes #741
lib/transfer.c