summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7e69e8)
raw | patch | inline | side by side (parent: c7e69e8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 30 Jun 2017 14:53:12 +0000 (16:53 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 30 Jun 2017 14:53:12 +0000 (16:53 +0200) |
src/openldap.c | patch | blob | history |
diff --git a/src/openldap.c b/src/openldap.c
index 7aa8c39278ec009166d4b605ee33084b79e6f30e..8053929015935ca6e2be51a66f09484c05803ef0 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
ERROR("openldap plugin: Failed to start tls on %s: %s", st->url,
ldap_err2string(rc));
st->state = 0;
-<<<<<<< HEAD
- ldap_unbind_ext_s(st->ld, NULL, NULL);
- return -1;
-=======
if (st->ld != NULL)
ldap_unbind_ext_s(st->ld, NULL, NULL);
return (-1);
->>>>>>> collectd-5.7
}
}
ERROR("openldap plugin: Failed to bind to %s: %s", st->url,
ldap_err2string(rc));
st->state = 0;
-<<<<<<< HEAD
- ldap_unbind_ext_s(st->ld, NULL, NULL);
- return -1;
-=======
if (st->ld != NULL)
ldap_unbind_ext_s(st->ld, NULL, NULL);
return (-1);
->>>>>>> collectd-5.7
} else {
DEBUG("openldap plugin: Successfully connected to %s", st->url);
st->state = 1;
ERROR("openldap plugin: Failed to execute search: %s", ldap_err2string(rc));
ldap_msgfree(result);
st->state = 0;
-<<<<<<< HEAD
- ldap_unbind_ext_s(st->ld, NULL, NULL);
- return -1;
-=======
if (st->ld != NULL)
ldap_unbind_ext_s(st->ld, NULL, NULL);
return (-1);
->>>>>>> collectd-5.7
}
for (LDAPMessage *e = ldap_first_entry(st->ld, result); e != NULL;