From 7cba04f6dedcf888170496bf8f1857c4069d1131 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 1 Aug 2009 10:13:20 +0000 Subject: More NULL pointer fixes Signed-off-by: Blue Swirl --- slirp/tcp_timer.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'slirp') diff --git a/slirp/tcp_timer.c b/slirp/tcp_timer.c index 556e32eadd..6c5bb11cc3 100644 --- a/slirp/tcp_timer.c +++ b/slirp/tcp_timer.c @@ -74,13 +74,15 @@ tcp_slowtimo(Slirp *slirp) * Search through tcb's and update active timers. */ ip = slirp->tcb.so_next; - if (ip == 0) - return; + if (ip == NULL) { + return; + } for (; ip != &slirp->tcb; ip = ipnxt) { ipnxt = ip->so_next; tp = sototcpcb(ip); - if (tp == 0) - continue; + if (tp == NULL) { + continue; + } for (i = 0; i < TCPT_NTIMERS; i++) { if (tp->t_timer[i] && --tp->t_timer[i] == 0) { tcp_timers(tp,i); -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0