Avoid an unnecessary xstrdup in rm_env() when matching patterns.
authormillert <millert@openbsd.org>
Wed, 20 Apr 2022 15:56:49 +0000 (15:56 +0000)
committermillert <millert@openbsd.org>
Wed, 20 Apr 2022 15:56:49 +0000 (15:56 +0000)
commit40bc48e04e91015290e33a5eae3fc3c95fedcb0e
tree69b4014c68fab0d31b367de06cfd95ef0d1bc4fc
parenta66d82b084937fce15804f42f3d8167e536cfcb6
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
usr.bin/ssh/readconf.c