From 81b1a9fbc14f973ff80a4bc67f237c17099fb34a Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 2 Jun 1994 17:01:32 +0000 Subject: [PATCH] Don't allow null passwords git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3680 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/kpasswd/kpasswd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kadmin/kpasswd/kpasswd.c b/src/kadmin/kpasswd/kpasswd.c index 3a8ac420b..459b8cc81 100644 --- a/src/kadmin/kpasswd/kpasswd.c +++ b/src/kadmin/kpasswd/kpasswd.c @@ -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; -- 2.26.2