Fix inverted test

git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@316 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2006-06-02 20:30:29 +00:00
parent e146a543d6
commit f0d1c5d399

View File

@@ -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;