From: Pierangelo Masarati Date: Mon, 2 Jan 2006 14:16:34 +0000 (+0000) Subject: complain if new password is not returned when expected X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9db78747846d0de3b3f1f141de03c40ffc5251dd;p=thirdparty%2Fopenldap.git complain if new password is not returned when expected --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 91137b0c2b..cc0dcdb878 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -380,6 +380,10 @@ main( int argc, char *argv[] ) } ber_free( ber, 1 ); + + } else if ( newpw.bv_val == NULL ) { + tool_perror( "ldap_parse_extended_result", LDAP_DECODING_ERROR, + " new password expected", NULL, NULL, NULL ); } if( verbose || code != LDAP_SUCCESS || matcheddn || text || refs ) {