diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-01 10:13:20 +0000 |
commit | 735d9ec6ea08e1f641ff092d39497449cd01b939 (patch) | |
tree | affaa99c83934efb6c95255ee6bf36973f5be860 /slirp | |
parent | 5bc66fd30d90a2eabc04a9b627bde9382edd99d8 (diff) | |
download | qemu-735d9ec6ea08e1f641ff092d39497449cd01b939.tar.gz qemu-735d9ec6ea08e1f641ff092d39497449cd01b939.tar.bz2 qemu-735d9ec6ea08e1f641ff092d39497449cd01b939.zip |
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp')
-rw-r--r-- | slirp/tcp_timer.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |