summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-11-13 14:55:42 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-11-13 14:55:42 -0500
commit8d092ef3e8d7c0dd8c4be63391d39dc274ca4abe (patch)
treeb20489a4b07b60d1304d4223bb5d43898602626b /parser.c
parent6e830a9d20940d97acdf9d5adbfdb540a8f0e25c (diff)
fix password length checking
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 2df2b18..58866f8 100644
--- a/parser.c
+++ b/parser.c
@@ -3628,7 +3628,7 @@ static int Go_sys_pwd_92(gchar** response, int channel, char *parameter,int comm
old_password = g_strdup (parameter);
error_num = OK;
- if ((strlen(new_password)< 6) || (strlen(new_password)< 6)) {
+ if ((strlen(new_password)< 6) || (strlen(new_password)>32)) {
error_num = password_change_error;
}