Ensure that tcp_rx() always frees its received packet buffer.
authorMichael Brown <mcb30@etherboot.org>
Tue, 5 Dec 2006 21:23:23 +0000 (21:23 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 5 Dec 2006 21:23:23 +0000 (21:23 +0000)
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 );