mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
libltdl: handle ENOMEM sooner
Fixes bug#19890. Reported by Tobias Stoeckmann. * libltdl/loaders/dld_link.c (vm_open): Do not even try dld_link() in case of ENOMEM.
This commit is contained in:
parent
5944fdcc73
commit
b5d44b8447
@ -136,6 +136,7 @@ Ryan Hill dirtyepic@gentoo.org
|
||||
Sebastian Wilhelmi wilhelmi@ira.uka.de
|
||||
Sven Verdoolaege skimo@liacs.nl
|
||||
Terry D. Dontje Terry.Dontje@Sun.COM
|
||||
Tobias Stoeckmann tobias@stoeckmann.org
|
||||
Tom Tromey tromey@cygnus.com
|
||||
Ulrich Drepper drepper@ipd.info.uni-karlsruhe.de
|
||||
Václav Zeman vhaisman@gmail.com
|
||||
|
@ -112,7 +112,7 @@ vm_open (lt_user_data loader_data LT__UNUSED, const char *filename,
|
||||
{
|
||||
lt_module module = lt__strdup (filename);
|
||||
|
||||
if (dld_link (filename) != 0)
|
||||
if (module && dld_link (filename) != 0)
|
||||
{
|
||||
LT__SETERROR (CANNOT_OPEN);
|
||||
FREE (module);
|
||||
|
Loading…
Reference in New Issue
Block a user