From f0d1c5d3995d5ba1d87302604b15acf61f7f8782 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 2 Jun 2006 20:30:29 +0000 Subject: [PATCH] Fix inverted test git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@316 06cd67b6-e706-0410-b29e-9de616bca6e9 --- ldap2dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap2dns.c b/ldap2dns.c index 7080a2b..72e44b3 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -1052,7 +1052,7 @@ int main(int argc, char** argv) for (;;) { int ldaperr = -1; res = connect(); - if (res) { + if (!res) { fprintf(stderr, "Warning - Problem while connecting to LDAP server:\n\t%s\n", ldap_err2string(res)); if (options.is_daemon==0) break;