summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/stdio_threading/fopen
diff options
context:
space:
mode:
authortb <>2024-06-18 05:32:38 +0000
committertb <>2024-06-18 05:32:38 +0000
commit077934ed34db43af7a32ad167417896aa83220ea (patch)
tree76cd4d373248a7c18241adc4cbe3ab572ed6fb1a /src/regress/lib/libc/stdio_threading/fopen
parent8db4dce857a6bd062b6d322568204b96c26de5e2 (diff)
downloadopenbsd-077934ed34db43af7a32ad167417896aa83220ea.tar.gz
openbsd-077934ed34db43af7a32ad167417896aa83220ea.tar.bz2
openbsd-077934ed34db43af7a32ad167417896aa83220ea.zip
do_ext_i2d(): avoid leaks and add some missing error checking
If ASN1_OCTET_STRING_new() failed, ext_der would be leaked, fix this. If i2d(foo, NULL) succeeded, the same is not guaranteed for the second with appropriately sized buffer since i2d() may make further allocations internally. So use the proper error check. Also transfer the ownership of ext_der to the octet string to avoid a now possible double free. ok jsing
Diffstat (limited to 'src/regress/lib/libc/stdio_threading/fopen')
0 files changed, 0 insertions, 0 deletions