From: Zbigniew Kostrzewa Date: Tue, 19 Feb 2013 12:27:51 +0000 (+0100) Subject: [LINUXWRT-110][CID: 44006] Prevent fixes. X-Git-Tag: 2.1b_release~22^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab0304b7980fdada2070462a50a7ea8348e4da42;p=platform%2Fframework%2Fweb%2Fwrt.git [LINUXWRT-110][CID: 44006] Prevent fixes. [Issue#] N/A [Problem] Pointer set to NULL passed to dlsym. [Cause] N/A [Solution] Fixed. [Verification] successful build, restart wrt-launchpad-deamon. No logical difference in working of wrt-launchpad-deamon. Change-Id: Ia0b834edd416a3751ea5042872f41299d1b95750 --- diff --git a/src/wrt-launchpad-daemon/legacy/preload.h b/src/wrt-launchpad-daemon/legacy/preload.h index 7baf625..a2da81b 100644 --- a/src/wrt-launchpad-daemon/legacy/preload.h +++ b/src/wrt-launchpad-daemon/legacy/preload.h @@ -40,7 +40,6 @@ typedef struct handle_list_t { static inline void __preload_init(int argc, char **argv) { - void *handle = NULL; char soname[MAX_LOCAL_BUFSZ] = { 0, }; FILE *preload_list; int (*func)() = NULL; @@ -82,7 +81,7 @@ static inline void __preload_init(int argc, char **argv) if (func != NULL) { _D("get pre-initialization function\n"); entry->dl_einit = func; - func = dlsym(handle, EFL_SHUTDOWN_FUNC); + func = dlsym(entry->handle, EFL_SHUTDOWN_FUNC); if (func != NULL) { _D("get shutdown function\n"); entry->dl_efini = func;