summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf-getput-basic.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-06-04 21:21:03 +0000
committerschwarze <schwarze@openbsd.org>2020-06-04 21:21:03 +0000
commitd0d7c83557b3c415802d9c96ee21246a0813f62c (patch)
tree61639f693ad943bb4c70d6c0070979952accea07 /usr.bin/ssh/sshbuf-getput-basic.c
parentRecognise Cortex-A78. (diff)
downloadwireguard-openbsd-d0d7c83557b3c415802d9c96ee21246a0813f62c.tar.xz
wireguard-openbsd-d0d7c83557b3c415802d9c96ee21246a0813f62c.zip
When X509_ATTRIBUTE_create() receives an invalid NID (e.g., -1), return
failure rather than silently constructing a broken X509_ATTRIBUTE object that might cause NULL pointer accesses later on. This matters because X509_ATTRIBUTE_create() is used by documented API functions like PKCS7_add_attribute(3) and the NID comes straight from the user. This fixes a bug found while working on documentation. OK tb@ and "thanks" bluhm@
Diffstat (limited to 'usr.bin/ssh/sshbuf-getput-basic.c')
0 files changed, 0 insertions, 0 deletions