mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
17.49.2012 381218cf77d239b95d25d0babfec3d63daa8c315
Minor fix: reset bind/tls connection state after error.
1 files modified
2 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/LDAPClientFilter.java 2 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/ldap/LDAPClientFilter.java
@@ -136,12 +136,14 @@
                                        return;
                                    }
                                } catch (final ErrorResultException e) {
                                    ldapConnection.setBindOrStartTLSInProgress(false);
                                    future.adaptErrorResult(e.getResult());
                                    return;
                                } catch (final IOException e) {
                                    // FIXME: I18N need to have a better error
                                    // message.
                                    // FIXME: Is this the best result code?
                                    ldapConnection.setBindOrStartTLSInProgress(false);
                                    final Result errorResult =
                                            Responses
                                                    .newResult(ResultCode.CLIENT_SIDE_LOCAL_ERROR)