From d69539ef245517b14c3453c1bd3e1e6113d3c545 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 7 Aug 2017 02:53:24 +0200 Subject: [PATCH] Fixed a source of crashes in slirp.c. --- src/NETWORK/slirp/slirp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NETWORK/slirp/slirp.c b/src/NETWORK/slirp/slirp.c index 3068dc72c..785d971f5 100644 --- a/src/NETWORK/slirp/slirp.c +++ b/src/NETWORK/slirp/slirp.c @@ -253,9 +253,10 @@ int slirp_select_fill(int *pnfds, /* * See if we need a tcp_fasttimo */ + if(so->so_tcpcb!=0x0){ if(&so->so_tcpcb->t_flags!=0x0){ //This is to prevent a common lockup. if (time_fasttimo == 0 && so->so_tcpcb->t_flags & TF_DELACK) - time_fasttimo = curtime; }/* Flag when we want a fasttimo */ + time_fasttimo = curtime; } } /* Flag when we want a fasttimo */ /*