summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-12-05 22:23:23 +0100
committerMichael Brown2006-12-05 22:23:23 +0100
commitfcc70c9d602fc81b0fde7a20cc661f8b184132ce (patch)
tree624fb4e409cd32880f14485d85f6592f4ed47cd7 /src
parentKilled off spurious <stdio.h> inclusion (diff)
downloadipxe-fcc70c9d602fc81b0fde7a20cc661f8b184132ce.tar.gz
ipxe-fcc70c9d602fc81b0fde7a20cc661f8b184132ce.tar.xz
ipxe-fcc70c9d602fc81b0fde7a20cc661f8b184132ce.zip
Ensure that tcp_rx() always frees its received packet buffer.
Diffstat (limited to 'src')
-rw-r--r--src/net/tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c
index ec32b89c3..afdf47c21 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -953,7 +953,8 @@ static int tcp_rx ( struct pk_buff *pkb,
* Send data
*/
tcp_senddata ( conn );
- return 0;
+ rc = 0;
+ goto done;
send_tcp_nomsg:
free_pkb ( conn->tx_pkb );