diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 23:03:59 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2000-10-17 23:03:59 +0000 |
| commit | 28e4396f34ac3c8caa53b99dc219a8ee3eda412b (patch) | |
| tree | db554df925c0bdef50b10525498ca6c4730de0f3 /src/kdc/kdc_util.c | |
| parent | ee69f45f90fdca503b8193c246c895bfd4e1d4c4 (diff) | |
| download | krb5-28e4396f34ac3c8caa53b99dc219a8ee3eda412b.tar.gz krb5-28e4396f34ac3c8caa53b99dc219a8ee3eda412b.tar.xz krb5-28e4396f34ac3c8caa53b99dc219a8ee3eda412b.zip | |
* kdc_preauth.c (get_etype_info): Initialize length of
etype_info_entry to KRB5_ETYPE_NO_SALT. Before copying salt into
etype_info_entry, test that salt length (from get_salt_from_key())
is not SALT_TYPE_NO_LENGTH.
* kdc_util.c (get_salt_from_key): Initialize salt type to
SALT_TYPE_NO_LENGTH (instead of -1).
* network.c (process_packet): Cast length in sendto() call to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12787 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/kdc_util.c')
| -rw-r--r-- | src/kdc/kdc_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index e2c73a0f8..3660ff552 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -1476,7 +1476,7 @@ get_salt_from_key(context, client, client_key, salt) krb5_data * realm; salt->data = 0; - salt->length = -1; + salt->length = SALT_TYPE_NO_LENGTH; if (client_key->key_data_ver == 1) return 0; |
