diff options
Diffstat (limited to 'src/lib/crypto/string_to_key.c')
-rw-r--r-- | src/lib/crypto/string_to_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypto/string_to_key.c b/src/lib/crypto/string_to_key.c index a569e4954c..c9a3d33e93 100644 --- a/src/lib/crypto/string_to_key.c +++ b/src/lib/crypto/string_to_key.c @@ -37,7 +37,7 @@ krb5_c_string_to_key(context, enctype, string, salt, key) { int i; krb5_error_code ret; - struct krb5_enc_provider *enc; + const struct krb5_enc_provider *enc; size_t keybytes, keylength; for (i=0; i<krb5_enctypes_length; i++) { @@ -59,7 +59,7 @@ krb5_c_string_to_key(context, enctype, string, salt, key) key->enctype = enctype; key->length = keylength; - if (ret = ((*(krb5_enctypes_list[i].str2key))(enc, string, salt, key))) { + if ((ret = ((*(krb5_enctypes_list[i].str2key))(enc, string, salt, key)))) { memset(key->contents, 0, keylength); free(key->contents); } |