summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/ssh/unittests/sshkey/common.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2020-01-25 23:54:21 +0000
committerclaudio <claudio@openbsd.org>2020-01-25 23:54:21 +0000
commit099b8a264fd269cba981859db842edaf90ac58e3 (patch)
treee351e8092f2c4317de4203343911ffaa43e2daff /regress/usr.bin/ssh/unittests/sshkey/common.c
parentclarify that BatchMode applies to all interactive prompts (e.g. host key (diff)
downloadwireguard-openbsd-099b8a264fd269cba981859db842edaf90ac58e3.tar.xz
wireguard-openbsd-099b8a264fd269cba981859db842edaf90ac58e3.zip
In nexthop_update() only add a nexthop to the nexthop_runners queue if
there is actual work to do (nh->next_prefix != NULL). If next_prefix is NULL there is a possibility that nexthop_unref() is called before the nexthop is removed from the nexthop_runners queue resulting in a use-after-free access in nexthop_runner(). For consistency add a debug message in nexthop_unlink() if the nexthop is removed from the nexthop_runners queue because the last prefix is gone. OK procter@
Diffstat (limited to 'regress/usr.bin/ssh/unittests/sshkey/common.c')
0 files changed, 0 insertions, 0 deletions