summaryrefslogtreecommitdiffstats
path: root/src/include/linux_api.h
diff options
context:
space:
mode:
authorMichael Brown2012-08-15 17:29:22 +0200
committerMichael Brown2012-08-15 17:29:22 +0200
commit501527daab88a2911f5309d5215decf7011a7fde (patch)
tree067bb5e8eea2e2f3762aefd12474306754eaa8bf /src/include/linux_api.h
parent[util] Fix up checksum in UNDI ROM header, if present (diff)
downloadipxe-501527daab88a2911f5309d5215decf7011a7fde.tar.gz
ipxe-501527daab88a2911f5309d5215decf7011a7fde.tar.xz
ipxe-501527daab88a2911f5309d5215decf7011a7fde.zip
[http] Treat any unexpected connection close as an error
iPXE currently checks that the server has not closed the connection mid-stream (i.e. in the middle of a chunked transfer, or before the specified Content-Length has been received), but does not check that the server got as far as starting to send data. Consequently, if the server closes the connection before any data is transferred (e.g. if the server gives up waiting while iPXE performs the validation steps for TLS), then iPXE will treat this as a successful transfer of a zero-length file. Fix by checking the RX connection state, and forcing an error if the server has closed the connection at an unexpected point. Originally-fixed-by: Marin Hannache <mareo@mareo.fr> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/linux_api.h')
0 files changed, 0 insertions, 0 deletions