diff options
author | tb <> | 2024-03-29 04:50:11 +0000 |
---|---|---|
committer | tb <> | 2024-03-29 04:50:11 +0000 |
commit | f2f239753afe93df4bf0c43d69b6fdc0b7625ec6 (patch) | |
tree | a61cc09104315091d4f55dc8c023f57e5e93257d /src/lib/libc/stdlib/div.c | |
parent | fb26968c651f68c0d0e9f86683d69aa87c8976de (diff) | |
download | openbsd-f2f239753afe93df4bf0c43d69b6fdc0b7625ec6.tar.gz openbsd-f2f239753afe93df4bf0c43d69b6fdc0b7625ec6.tar.bz2 openbsd-f2f239753afe93df4bf0c43d69b6fdc0b7625ec6.zip |
Make X509_VERIFY_PARAM_set1_policies() less bad
If any OBJ_dup() fails along the way, a partially copied policy stack
would remain on the params object. This makes no sense. Implement and
use an sk_ASN1_OBJECT_deep_copy(), that copies the full stack or else
returns NULL.
Remove unnecessary NULL check and streamline some other logic.
ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/div.c')
0 files changed, 0 insertions, 0 deletions