diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2000-07-17 20:03:27 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2000-07-17 20:03:27 +0000 |
| commit | e07e8174628d201657395f39d8c15db439e8700d (patch) | |
| tree | 436d2098b1a66fbd39b07fae5aed3cad4a04aa9e | |
| parent | a12de06299afd0a4d87da41d2f2df72f02c1bb20 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/ip_dummynet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c index 39492b985a6c..7b1163b53fa1 100644 --- a/sys/netinet/ip_dummynet.c +++ b/sys/netinet/ip_dummynet.c @@ -1549,7 +1549,7 @@ delete_pipe(struct dn_pipe *p) /* locate pipe */ for (a = NULL , b = all_pipes ; b && b->pipe_nr < p->pipe_nr ; a = b , b = b->next) ; - if (b && b->pipe_nr != p->pipe_nr) + if (b == NULL || b->pipe_nr != p->pipe_nr) return EINVAL ; /* not found */ s = splnet() ; @@ -1585,7 +1585,7 @@ delete_pipe(struct dn_pipe *p) /* locate set */ for (a = NULL, b = all_flow_sets ; b && b->fs_nr < p->fs.fs_nr ; a = b , b = b->next) ; - if (b && b->fs_nr != p->fs.fs_nr) + if (b == NULL || b->fs_nr != p->fs.fs_nr) return EINVAL ; /* not found */ s = splnet() ; |
