diff options
author | Theodore Tso <tytso@mit.edu> | 1998-02-06 04:50:31 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1998-02-06 04:50:31 +0000 |
commit | 51924e9c496b7b10e5badae7cc1a08934e6542c7 (patch) | |
tree | 40d1a3f96bf4049efcb94cb0bbe3b9d3e5f92d35 /src/lib/krb5/krb/rd_safe.c | |
parent | bf5b18617222ab2ea1162cfd7182223a0a7a7f0b (diff) | |
download | krb5-51924e9c496b7b10e5badae7cc1a08934e6542c7.zip krb5-51924e9c496b7b10e5badae7cc1a08934e6542c7.tar.gz krb5-51924e9c496b7b10e5badae7cc1a08934e6542c7.tar.bz2 |
rd_cred.c (krb5_rd_cred):
rd_safe.c (krb5_rd_safe):
rd_priv.c (krb5_rd_priv): Use the remote_subkey first, since the mk_*
routines try to use their local_subkey first. Otherwise, the wrong
keys will get used if subkeys are used in both directions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10415 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/rd_safe.c')
-rw-r--r-- | src/lib/krb5/krb/rd_safe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 9f23ff3..5f0fcd6 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -170,8 +170,8 @@ krb5_rd_safe(context, auth_context, inbuf, outbuf, outdata) return KRB5_RC_REQUIRED; /* Get keyblock */ - if ((keyblock = auth_context->local_subkey) == NULL) - if ((keyblock = auth_context->remote_subkey) == NULL) + if ((keyblock = auth_context->remote_subkey) == NULL) + if ((keyblock = auth_context->local_subkey) == NULL) keyblock = auth_context->keyblock; { |