mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When trying each linker class in turn with a preloaded module, exit
the loop if the preload was successful. Previously a successful preload was ignored if the linker class was not the last in the list.
This commit is contained in:
parent
6f2e86455b
commit
0ca311f6a1
1 changed files with 2 additions and 3 deletions
|
|
@ -1203,10 +1203,9 @@ linker_preload(void *arg)
|
|||
lf = NULL;
|
||||
TAILQ_FOREACH(lc, &classes, link) {
|
||||
error = LINKER_LINK_PRELOAD(lc, modname, &lf);
|
||||
if (error) {
|
||||
lf = NULL;
|
||||
if (!error)
|
||||
break;
|
||||
}
|
||||
lf = NULL;
|
||||
}
|
||||
if (lf)
|
||||
TAILQ_INSERT_TAIL(&loaded_files, lf, loaded);
|
||||
|
|
|
|||
Loading…
Reference in a new issue