diff options
author | 2020-09-20 19:13:06 +0000 | |
---|---|---|
committer | 2020-09-20 19:13:06 +0000 | |
commit | 73cc06fd813e794b30ebbb25563b58531a823e43 (patch) | |
tree | 695dcad05eee14eadba9d0952148563769698acb /usr.bin/ssh/ssh.c | |
parent | KNF/whitespace nits (diff) | |
download | wireguard-openbsd-73cc06fd813e794b30ebbb25563b58531a823e43.tar.xz wireguard-openbsd-73cc06fd813e794b30ebbb25563b58531a823e43.zip |
Avoid memleak caused by shadowing
The outer scope in x509_constraints_extract_names() contains a vname
variable which will be freed on error, but an inner scope contains
another vname that won't be freed, e.g., if x509_constraints_names_add
fails.
Found by llvm scan-build.
ok beck
Diffstat (limited to 'usr.bin/ssh/ssh.c')
0 files changed, 0 insertions, 0 deletions