mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
fix potential null ptr deref
Submitted by: Coverity Prevent analysis tool
This commit is contained in:
parent
14d15addab
commit
b083b7c98d
1 changed files with 4 additions and 4 deletions
|
|
@ -2292,10 +2292,6 @@ dump_db(struct fwohci_softc *sc, uint32_t ch)
|
|||
pp = dbch->top;
|
||||
prev = pp->db;
|
||||
for(idb = 0 ; idb < dbch->ndb ; idb ++ ){
|
||||
if(pp == NULL){
|
||||
curr = NULL;
|
||||
goto outdb;
|
||||
}
|
||||
cp = STAILQ_NEXT(pp, link);
|
||||
if(cp == NULL){
|
||||
curr = NULL;
|
||||
|
|
@ -2314,6 +2310,10 @@ dump_db(struct fwohci_softc *sc, uint32_t ch)
|
|||
}
|
||||
}
|
||||
pp = STAILQ_NEXT(pp, link);
|
||||
if(pp == NULL){
|
||||
curr = NULL;
|
||||
goto outdb;
|
||||
}
|
||||
prev = pp->db;
|
||||
}
|
||||
outdb:
|
||||
|
|
|
|||
Loading…
Reference in a new issue