Date: Mon, 22 May 2006 19:01:20 -0700 (PDT) From: Nick Johnson <freebsd@spatula.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/97671: dovecot fails to reset dlerror before calling dlsym (patch) Message-ID: <20060523020120.614121706F@turing.morons.org> Resent-Message-ID: <200605230210.k4N2AF9U094535@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 97671 >Category: ports >Synopsis: dovecot fails to reset dlerror before calling dlsym (patch) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 23 02:10:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Nick Johnson >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: morons.org >Environment: System: FreeBSD turing.morons.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #3: Wed Mar 15 11:22:41 PST 2006 root@turing.morons.org:/usr/obj/usr/src/sys/TURING i386 >Description: dovecot doesn't reset dlerror before calling dlsym and then checking dlerror to see if the dlsym happened correctly when it tries to load a plug-in. >How-To-Repeat: Use any mail plug-in for imap or pop3. >Fix: shar: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # files/patch-module-dir.c # echo x - files/patch-module-dir.c sed 's/^X//' >files/patch-module-dir.c << 'END-of-files/patch-module-dir.c' X--- src/lib/module-dir.c.orig Mon May 22 18:44:17 2006 X+++ src/lib/module-dir.c Mon May 22 18:45:44 2006 X@@ -24,6 +24,9 @@ X const char *error; X void *ret; X X+ /* reset dlerror */ X+ (void)dlerror(); X+ X /* get our init func */ X ret = dlsym(module->handle, symbol); X END-of-files/patch-module-dir.c exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060523020120.614121706F>