summaryrefslogtreecommitdiff
path: root/src/lib/libssl/man/ssl.3
diff options
context:
space:
mode:
authortb <>2020-09-20 03:19:52 +0000
committertb <>2020-09-20 03:19:52 +0000
commitfb6f37b43e95953a3e7180f1c3cc4fbc1e9e3a16 (patch)
treea35889fc2181569ba43b065ccd91135008a8d676 /src/lib/libssl/man/ssl.3
parent465149e5fe23767db91fb782ddc270307e0ee4bf (diff)
downloadopenbsd-fb6f37b43e95953a3e7180f1c3cc4fbc1e9e3a16.tar.gz
openbsd-fb6f37b43e95953a3e7180f1c3cc4fbc1e9e3a16.tar.bz2
openbsd-fb6f37b43e95953a3e7180f1c3cc4fbc1e9e3a16.zip
Fix a memory leak in x509_constraints_extract_names
If the default path of the switch is taken, vname will not be added to the names list and will leak when it is set to NULL. Simplify the logic by eliminating the add Boolean. Instead, free and zero vname in the default case and continue the while loop directly. At the bottom of the switch, add vname to the names list unconditionally zero it out since it's now owned by names. Found by Guido Vranken's cryptofuzzer ok beck
Diffstat (limited to 'src/lib/libssl/man/ssl.3')
0 files changed, 0 insertions, 0 deletions