mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
resolv: __resolv_conf_attach must not free passed conf object [BZ #22096]
This commit is contained in:
parent
5670c4ab25
commit
a830473081
@ -1,3 +1,9 @@
|
||||
2017-09-06 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #22096]
|
||||
* resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
|
||||
case of failure to obtain the global conf object.
|
||||
|
||||
2017-09-06 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #22095]
|
||||
|
@ -600,10 +600,7 @@ __resolv_conf_attach (struct __res_state *resp, struct resolv_conf *conf)
|
||||
|
||||
struct resolv_conf_global *global_copy = get_locked_global ();
|
||||
if (global_copy == NULL)
|
||||
{
|
||||
free (conf);
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
/* Try to find an unused index in the array. */
|
||||
size_t index;
|
||||
|
Loading…
Reference in New Issue
Block a user