summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/obj_dat.c
diff options
context:
space:
mode:
authortb <>2023-12-14 12:02:10 +0000
committertb <>2023-12-14 12:02:10 +0000
commitcb6863c33257813bf333dc79b37a22d8bc63022b (patch)
tree4908d2d7ad0072f6f41bdbb32a1e687f4e61d0a5 /src/lib/libcrypto/objects/obj_dat.c
parent8385a1413b2e5538a1801b97c60760de71609608 (diff)
downloadopenbsd-cb6863c33257813bf333dc79b37a22d8bc63022b.tar.gz
openbsd-cb6863c33257813bf333dc79b37a22d8bc63022b.tar.bz2
openbsd-cb6863c33257813bf333dc79b37a22d8bc63022b.zip
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 'src/lib/libcrypto/objects/obj_dat.c')
0 files changed, 0 insertions, 0 deletions