summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-11-08 09:33:37 +0000
committerpatrick <patrick@openbsd.org>2017-11-08 09:33:37 +0000
commit8068c079af43768d71f46702115722ef34f7f7a9 (patch)
tree25b6ce74bc8a27725255561bd6d6f3aba074bfd3 /sys
parentFixup what looks like a merge mistake; no functional change (diff)
downloadwireguard-openbsd-8068c079af43768d71f46702115722ef34f7f7a9.tar.xz
wireguard-openbsd-8068c079af43768d71f46702115722ef34f7f7a9.zip
Since r1.41 the extensions are included in the CSR. Thus ca_request()
already sets the extension values and returns. ca_sign() re-uses the information to write out the extension file. Since ca_request() uses strings stored on the stack, on return the pointers to those strings will be unusable. To fix this, strdup() the strings passed ca_setenv() so we can re-use them in another scope. And free() them when we clear the environment in ca_clrenv(). Initial report and diff from Andrei-Marius Radu. ok markus@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions