This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]