Re: readconf.c: Avoid a xstrdup

2022-04-19 Thread Todd C . Miller
On Tue, 19 Apr 2022 11:41:10 +0200, Martin Vahlensieck wrote: > There is no need to duplicate options->send_env[i] only free it > in all cases. Just use options->send_env[i] directly. Good catch, match_pattern() takes const char * arguments so there is no danger there. - todd

readconf.c: Avoid a xstrdup

2022-04-19 Thread Martin Vahlensieck
Hi There is no need to duplicate options->send_env[i] only free it in all cases. Just use options->send_env[i] directly. Best, Martin Index: readconf.c === RCS file: /cvs/src/usr.bin/ssh/readconf.c,v retrieving revision 1.366 diff