summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-03-13 21:53:44 +0000
committerwtchang%redhat.com <devnull@localhost>2006-03-13 21:53:44 +0000
commit04f5bffda043f2361f1f2e03ced2737224e53067 (patch)
tree3a3ff9bb36837436caf1c9f25927edb10327d99b
parente31d72e33ba29a83c5cc8eabdf97924e3e397e46 (diff)
downloadnspr-hg-04f5bffda043f2361f1f2e03ced2737224e53067.tar.gz
Bugzilla Bug 330364: fixed a NULL pointer dereference in
PR_LoadStaticLibrary by moving the PR_LOG statement to the same location as in pr_LoadLibraryByPathname. The bug was discovered by Coverity's tool. r=Kenneth Herron,Gavin Sharp. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/src/linking/prlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c
index a23bc599..76be43ec 100644
--- a/pr/src/linking/prlink.c
+++ b/pr/src/linking/prlink.c
@@ -1603,8 +1603,8 @@ PR_LoadStaticLibrary(const char *name, const PRStaticLinkTable *slt)
result = lm; /* success */
PR_ASSERT(lm->refCount == 1);
- unlock:
PR_LOG(_pr_linker_lm, PR_LOG_MIN, ("Loaded library %s (static lib)", lm->name));
+ unlock:
PR_ExitMonitor(pr_linker_lock);
return result;
}