From 9db78747846d0de3b3f1f141de03c40ffc5251dd Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 2 Jan 2006 14:16:34 +0000 Subject: [PATCH] complain if new password is not returned when expected --- clients/tools/ldappasswd.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.39.5