summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authortb <>2023-09-05 14:59:00 +0000
committertb <>2023-09-05 14:59:00 +0000
commit26fbf3218b1396b44312a1eaf026d8a5ff25bd80 (patch)
tree22da69dcececfe6528bc1a64fc0198f16e0c9897 /src/lib/libc/stdlib
parent406c48f69a2d824668f0583b76465f7f79c31809 (diff)
downloadopenbsd-26fbf3218b1396b44312a1eaf026d8a5ff25bd80.tar.gz
openbsd-26fbf3218b1396b44312a1eaf026d8a5ff25bd80.tar.bz2
openbsd-26fbf3218b1396b44312a1eaf026d8a5ff25bd80.zip
Improve error handling in OBJ_add_object()
There is no need for a helper function to obfuscate lh_ADDED_OBJ_new(). Just call the real thing directly. Adding an object with a NID of NID_undef basically amounts to disabling a built-in OID. It does so in an incoherent fashion and the caller can't easily tell success from failure of the operation. Arguably the result is a corrupted objects table. Let's not allow adding such an object in an attempt at keeping things slightly more coherent. Issue noted and initial diff by schwarze while writing documentation ok schwarze
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions