Return the result code, not false (0 == success) on error...
authorAndrew Bartlett <abartlet@samba.org>
Sat, 2 Nov 2002 03:37:26 +0000 (03:37 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 2 Nov 2002 03:37:26 +0000 (03:37 +0000)
source/passdb/pdb_ldap.c

index 5be9246995a4b9c9763434ecabce96628df039cb..9ab10b8c084e88d3f93f5a216ae38bbc3b5d7d2b 100644 (file)
@@ -243,7 +243,7 @@ static int ldapsam_open_connection (struct ldapsam_privates *ldap_state, LDAP **
                        {
                                DEBUG(0,("Failed to issue the StartTLS instruction: %s\n",
                                         ldap_err2string(rc)));
-                               return False;
+                               return rc;
                        }
                        DEBUG (3, ("StartTLS issued: using a TLS connection\n"));
                } else {