svn rev #23929: trunk/src/util/support/
tlyu@MIT.EDU
tlyu at MIT.EDU
Thu Apr 22 21:30:49 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23929
Commit By: tlyu
Log Message:
ticket: 6697
target_version: 1.8.2
tags: pullup
Adapted patch from Arlene Berry to handle dlerror() returning a null
pointer.
Changed Files:
U trunk/src/util/support/plugins.c
Modified: trunk/src/util/support/plugins.c
===================================================================
--- trunk/src/util/support/plugins.c 2010-04-23 01:10:20 UTC (rev 23928)
+++ trunk/src/util/support/plugins.c 2010-04-23 01:30:48 UTC (rev 23929)
@@ -268,6 +268,8 @@
handle = dlopen(filepath, PLUGIN_DLOPEN_FLAGS);
if (handle == NULL) {
const char *e = dlerror();
+ if (e == NULL)
+ e = "unknown failure";
Tprintf ("dlopen(%s): %s\n", filepath, e);
err = ENOENT; /* XXX */
krb5int_set_error (ep, err, "%s", e);
@@ -335,6 +337,8 @@
sym = dlsym (h->dlhandle, csymname);
if (sym == NULL) {
const char *e = dlerror (); /* XXX copy and save away */
+ if (e == NULL)
+ e = "unknown failure";
Tprintf ("dlsym(%s): %s\n", csymname, e);
err = ENOENT; /* XXX */
krb5int_set_error(ep, err, "%s", e);
More information about the cvs-krb5
mailing list