opnsense-ports/net/pacemaker/files/patch-lib-common-utils.c
Franco Fichtner 934d69e7a3 */*: sync with upstream
Taken from: FreeBSD
2016-03-25 11:56:02 +01:00

12 lines
441 B
C

--- lib/common/utils.c.orig 2016-01-14 21:43:08 UTC
+++ lib/common/utils.c
@@ -2270,7 +2270,8 @@ find_library_function(void **handle, con
}
a_function = dlsym(*handle, fn);
- if ((error = dlerror()) != NULL) {
+ if (a_function == NULL) {
+ error = dlerror();
crm_err("%sCould not find %s in %s: %s", fatal ? "Fatal: " : "", fn, lib, error);
if (fatal) {
crm_exit(DAEMON_RESPAWN_STOP);