mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
660f11be54
commit
7cba04f6de
7 changed files with 13 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue