From: Pierangelo Masarati Date: Thu, 30 Dec 2010 15:51:25 +0000 (+0000) Subject: fix perror; removed extra sequence opening (is it needed; if yes, it must also be... X-Git-Tag: MIGRATION_CVS2GIT~327 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=538b582cdc4d3f6a2f1e345f288d1347eb24a6ad;p=openldap fix perror; removed extra sequence opening (is it needed; if yes, it must also be closed, see #if 0) --- diff --git a/libraries/libldap/vc.c b/libraries/libldap/vc.c index 17b933dbe3..3badf054f1 100644 --- a/libraries/libldap/vc.c +++ b/libraries/libldap/vc.c @@ -71,7 +71,7 @@ int ldap_parse_verify_credentials( rc = ldap_parse_extended_result(ld, res, &retoid, &retdata, 0); if( rc != LDAP_SUCCESS ) { - ldap_perror(ld, "ldap_parse_whoami"); + ldap_perror(ld, "ldap_parse_verify_credentials"); return rc; } @@ -129,7 +129,9 @@ ldap_verify_credentials(LDAP *ld, assert(msgidp != NULL); ber = ber_alloc_t(LBER_USE_DER); - ber_printf(ber, "{"); +#if 0 + ber_printf(ber, "{" /*}*/ ); +#endif if (dn == NULL) dn = ""; if (mechanism == LDAP_SASL_SIMPLE) { @@ -159,6 +161,9 @@ ldap_verify_credentials(LDAP *ld, } } } +#if 0 + ber_printf(ber, /*{*/ "N}" ); +#endif ber_flatten(ber, &reqdata);