Explorar el Código

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

tags/v0.9.3
Michael Brown hace 18 años
padre
commit
fcc70c9d60
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/net/tcp.c

+ 2
- 1
src/net/tcp.c Ver fichero

@@ -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 );

Loading…
Cancelar
Guardar