]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapmodrdn.c
Added -llber 'N' ber_printf format which inserts a NULL if
[openldap] / clients / tools / ldapmodrdn.c
index afbf959d5f94f8564d8801982c6783d48797455e..40615d047c8a4e3b740b96b76e126466921ad175 100644 (file)
@@ -365,7 +365,7 @@ main(int argc, char **argv)
 
        if (want_bindpw) {
                passwd.bv_val = getpassphrase("Enter LDAP Password: ");
-               passwd.bv_len = strlen( passwd.bv_val );
+               passwd.bv_len = passwd.bv_val ? strlen( passwd.bv_val ) : 0;
        }
 
        if ( authmethod == LDAP_AUTH_SASL ) {