diff options
Diffstat (limited to 'asn1/ldap')
-rw-r--r-- | asn1/ldap/ldap.cnf | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf index 77576d12d5..bd110ffe17 100644 --- a/asn1/ldap/ldap.cnf +++ b/asn1/ldap/ldap.cnf @@ -202,9 +202,7 @@ char *mechanism = NULL; * Otherwise, if the saved mechanism is an empty string (null), * save this mechanism. */ - if (mechanism == NULL) { - mechanism = ldap_info->auth_mech; - } else { + if (mechanism != NULL) { g_free(ldap_info->auth_mech); ldap_info->auth_mech = mechanism; } |