Przeglądaj źródła

Ensure that tcp_rx() always frees its received packet buffer.

tags/v0.9.3
Michael Brown 18 lat temu
rodzic
commit
fcc70c9d60
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      src/net/tcp.c

+ 2
- 1
src/net/tcp.c Wyświetl plik

@@ -953,7 +953,8 @@ static int tcp_rx ( struct pk_buff *pkb,
953 953
 	 * Send data
954 954
 	 */
955 955
 	tcp_senddata ( conn );
956
-	return 0;
956
+	rc = 0;
957
+	goto done;
957 958
 
958 959
   send_tcp_nomsg:
959 960
 	free_pkb ( conn->tx_pkb );

Ładowanie…
Anuluj
Zapisz