]> git.sur5r.net Git - openldap/commitdiff
complain if new password is not returned when expected
authorPierangelo Masarati <ando@openldap.org>
Mon, 2 Jan 2006 14:16:34 +0000 (14:16 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 2 Jan 2006 14:16:34 +0000 (14:16 +0000)
clients/tools/ldappasswd.c

index 91137b0c2b4b4509e6dba093be5f57d25b83fb7d..cc0dcdb87867e86cb75161d8476919482aaa4379 100644 (file)
@@ -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 ) {