HomeFreeBSD

wg: fix MOD_LOAD to fail properly if cookie_init() fails

Description

wg: fix MOD_LOAD to fail properly if cookie_init() fails

Previously we'd jump to the free_crypto label, but never set ret to
a failure value -- it would retain success from the call just prior.

Set ret up properly.

(cherry picked from commit ad9f4e6351fb23ee81bc940638d20af3ca7c278d)

Details

Provenance
kevansAuthored on Jun 23 2023, 4:41 PM
Parents
rG679ff7a0c58a: bug: efi_print_global only checks for the first 5 letters of "Driver"
Branches
Unknown
Tags
Unknown