summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-09-20 03:19:53 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-09-20 03:19:53 +0000
commitc58ba806fcd4cba57ac8c3eb2d2f006daed3d83f (patch)
treee8855e203ebf922c7b18a622f37348b0e7c66e0d /regress
parenta13eb41c5d51fd8a34c0782c63875ea3becb03c9 (diff)
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 'regress')
0 files changed, 0 insertions, 0 deletions