projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb0cd72
)
Fix krb5_c_weak_enctype in the case of invalid enctypes; r22839
author
Greg Hudson
<ghudson@mit.edu>
Wed, 7 Oct 2009 18:13:29 +0000
(18:13 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Wed, 7 Oct 2009 18:13:29 +0000
(18:13 +0000)
simplified it a bit too much.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22865
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/krb/valid_enctype.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/krb/valid_enctype.c
b/src/lib/crypto/krb/valid_enctype.c
index 0240cbc6f45da59e737eabdd24b779439b6dbc53..b5c61d36018754b7b3afa21adc95198b3383f622 100644
(file)
--- a/
src/lib/crypto/krb/valid_enctype.c
+++ b/
src/lib/crypto/krb/valid_enctype.c
@@
-45,5
+45,5
@@
krb5_c_weak_enctype(krb5_enctype etype)
const struct krb5_keytypes *ktp;
ktp = find_enctype(etype);
- return ((ktp->flags & ETYPE_WEAK) != 0);
+ return (
ktp != NULL &&
(ktp->flags & ETYPE_WEAK) != 0);
}