mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix a crash when reloading the configuration file.
Spotted by: des
This commit is contained in:
parent
27dfa8eb60
commit
6ce540f397
1 changed files with 2 additions and 4 deletions
|
|
@ -296,10 +296,8 @@ rm_rainfo(struct rainfo *rai)
|
|||
if (rai->rai_ra_data != NULL)
|
||||
free(rai->rai_ra_data);
|
||||
|
||||
while ((pfx = TAILQ_FIRST(&rai->rai_prefix)) != NULL) {
|
||||
TAILQ_REMOVE(&rai->rai_prefix, pfx, pfx_next);
|
||||
free(pfx);
|
||||
}
|
||||
while ((pfx = TAILQ_FIRST(&rai->rai_prefix)) != NULL)
|
||||
delete_prefix(pfx);
|
||||
while ((sol = TAILQ_FIRST(&rai->rai_soliciter)) != NULL) {
|
||||
TAILQ_REMOVE(&rai->rai_soliciter, sol, sol_next);
|
||||
free(sol);
|
||||
|
|
|
|||
Loading…
Reference in a new issue