Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 25 Apr 2017 18:26:14 +0000
From: Stefan Sedich <stefan.sedich@...il.com>
To: Georgi Chorbadzhiyski <gf@...xsol.org>, musl@...ts.openwall.com
Subject: Re: [PATCH v2] Add RES_OPTIONS support for resolv.conf options overriding

On Tue, Apr 25, 2017 at 11:20 AM Georgi Chorbadzhiyski <gf@...xsol.org>
wrote:

> On 4/25/17 8:02 PM, Stefan Sedich wrote:
> > +     char *res_opts_env;
> > +     if (!libc.secure) res_opts_env = getenv("RES_OPTIONS");
> > +     if (res_opts_env) {
>
> It seems to me that 'res_opts_env' is not guaranteed to be initialized
> in case libc.secure is set.
>
> > +             __parse_resolv_opts(conf, res_opts_env);
> > +     }
> > +
> >       return 0;
> >  }
>

Will initializing res_opts_env to 0 be enough here?

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.