This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Error handling for dlopen
- From: "H . J . Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 29 May 2002 16:51:07 -0700
- Subject: PATCH: Error handling for dlopen
Why do we check args.map->l_searchlist.r_list[0] instead of args.map
here?
H.J.
----
2002-05-29 H.J. Lu <hjl@gnu.org>
* elf/dl-open.c (_dl_open): Check args.map->l_opencount
instead of args.map->l_searchlist.r_list[0]->l_opencount
for error.
--- elf/dl-open.c.close Wed May 29 12:21:14 2002
+++ elf/dl-open.c Wed May 29 16:44:20 2002
@@ -503,7 +503,7 @@ _dl_open (const char *file, int mode, co
/* Increment open counters for all objects since this
sometimes has not happened yet. */
- if (args.map->l_searchlist.r_list[0]->l_opencount == 0)
+ if (args.map->l_opencount == 0)
for (i = 0; i < args.map->l_searchlist.r_nlist; ++i)
++args.map->l_searchlist.r_list[i]->l_opencount;