diff options
author | 2017-11-08 09:33:37 +0000 | |
---|---|---|
committer | 2017-11-08 09:33:37 +0000 | |
commit | 8068c079af43768d71f46702115722ef34f7f7a9 (patch) | |
tree | 25b6ce74bc8a27725255561bd6d6f3aba074bfd3 /sys/netinet/ip_ipcomp.c | |
parent | Fixup what looks like a merge mistake; no functional change (diff) | |
download | wireguard-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/netinet/ip_ipcomp.c')
0 files changed, 0 insertions, 0 deletions