david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/net
Michael Brown 501527daab [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>
2012-08-15 16:29:22 +01:00
..
80211 [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
infiniband [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
tcp [http] Treat any unexpected connection close as an error 2012-08-15 16:29:22 +01:00
udp [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
aoe.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
arp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
cachedhcp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
dhcpopts.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
dhcppkt.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
eapol.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
eth_slow.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
ethernet.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fakedhcp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fc.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fcels.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fcns.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fcoe.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
fcp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
icmp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
icmpv6.c [build] Fix misaligned table entries when using gcc 4.5 2010-08-20 10:13:04 +01:00
infiniband.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
iobpad.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
ipv4.c [dhcp] Request broadcast responses when we already have an IPv4 address 2012-06-20 12:01:50 +01:00
ipv6.c [netdevice] Allow link layer to report broadcast/multicast packets via pull() 2011-07-15 18:48:46 +01:00
ndp.c [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
netdev_settings.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
netdevice.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
nullnet.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
rarp.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
retry.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
tcp.c [tcp] Truncate TCP window to prevent future packet discards 2012-07-09 10:13:47 +01:00
tcpip.c [tcpip] Allow for architecture-specific TCP/IP checksum routines 2012-06-27 19:15:17 +01:00
tls.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
udp.c [udp] Propagate transmission errors to UDP interface users 2012-02-20 19:29:49 +00:00
validator.c [crypto] Fix unused-but-set variable warning 2012-05-23 23:48:12 +01:00
vlan.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00