summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include/ieee.h
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-12-14 12:02:11 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-12-14 12:02:11 +0000
commit462f0bbf2b6e398ab1e992229bd3c76026d42ec3 (patch)
tree4963dbb2d1c3c2525d6b2d78412b379b2add0ebd /sys/arch/arm64/include/ieee.h
parent8a429fecf5c8ff57b75dc24955d2c20d81d69217 (diff)
Fix sk_deep_copy() implementation
sk_deep_copy() is bad code. It is less bad than the upstream code, but still bad: it passes strdup() through a void pointer and assigns it to a function pointer of different type before calling the latter. That's not kosher in more than one way. There is no need for such gymnastics. If we need a deep copy for a type, we should implement it as appropriate for that type. Also, we should not expect and even less so allow holes in a STACK_OF(). The only way the vpm->hosts can be populated is by way of this deep_copy function or x509_param_set_hosts_internal(), which pushes only after a non-NULL check. Invariants: they're useful. ok jsing
Diffstat (limited to 'sys/arch/arm64/include/ieee.h')
0 files changed, 0 insertions, 0 deletions