Ensure that tcp_rx() always frees its received packet buffer.
[people/mcb30/gpxe.git] / src / net / tcp.c
index ec32b89..afdf47c 100644 (file)
@@ -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 );