diff options
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c index 40cccda1..415c42aa 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -176,7 +176,9 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){ * easy to guess password sizes. * not that sure ... */ - if(strlen(password)>=128){ + /* XXX fix me here ! */ + /* cisco IOS doesn't like when a password is followed by zeroes and random pad. */ + if(strlen(password)>=0){ /* not risky to disclose the size of such a big password .. */ password_s=string_from_char(password); } else { |