From: John Kohl Date: Tue, 20 Nov 1990 11:08:23 +0000 (+0000) Subject: need to use 0xffff rather than -1 since the type is unsigned. X-Git-Tag: krb5-1.0-alpha3~118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52831f557a1025bba5e8f6fbdfb7bce5021f82ca;p=krb5.git need to use 0xffff rather than -1 since the type is unsigned. this makes defaulting based on keytype work again. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1475 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/create/kdb5_create.c b/src/admin/create/kdb5_create.c index 2d7cce819..060caf048 100644 --- a/src/admin/create/kdb5_create.c +++ b/src/admin/create/kdb5_create.c @@ -117,7 +117,7 @@ char *argv[]; char *mkey_fullname; char defrealm[BUFSIZ]; int keytypedone = 0; - krb5_enctype etype = -1; + krb5_enctype etype = 0xffff; initialize_krb5_error_table(); initialize_kdb5_error_table(); @@ -160,7 +160,7 @@ char *argv[]; exit(1); } - if (etype == -1) + if (etype == 0xffff) etype = krb5_keytype_array[master_keyblock.keytype]->system->proto_enctype; if (!valid_etype(etype)) {