Skip to content

Commit

Permalink
Don't allow null passwords.
Browse files Browse the repository at this point in the history
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3680 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tytso committed Jun 2, 1994
1 parent 05c102e commit 6f399d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/kadmin/kpasswd/kpasswd.c
Expand Up @@ -460,6 +460,11 @@ main(argc,argv)
free(new_password);
goto finish;
}
if (new_pwsize == 0) {
fprintf(stderr, "A null password is not allowed!\n");
free(new_password);
goto finish;
}
#endif

inbuf.data = new_password;
Expand Down

0 comments on commit 6f399d3

Please sign in to comment.