]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Avoid an unnecessary xstrdup in rm_env() when matching
authormillert@openbsd.org <millert@openbsd.org>
Wed, 20 Apr 2022 15:56:49 +0000 (15:56 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 27 Apr 2022 11:28:37 +0000 (21:28 +1000)
commitfe9d87a6800a7a33be08f4d5ab662a758055ced2
tree85c591b2a9265bc6a78fd130f84503c47f1ec0ed
parent7bf2eb958fbb551e7d61e75c176bb3200383285d
upstream: Avoid an unnecessary xstrdup in rm_env() when matching

patterns. Since match_pattern() doesn't modify its arguments (they are
const), there is no need to make an extra copy of the strings in
options->send_env. From Martin Vahlensieck

OpenBSD-Commit-ID: 2c9db31e3f4d3403b49642c64ee048b2a0a39351
readconf.c