summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/krb5
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gssapi/krb5')
-rw-r--r--src/lib/gssapi/krb5/init_sec_context.c2
-rw-r--r--src/lib/gssapi/krb5/util_crypt.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c
index f91c7525ee..631cbe0808 100644
--- a/src/lib/gssapi/krb5/init_sec_context.c
+++ b/src/lib/gssapi/krb5/init_sec_context.c
@@ -131,7 +131,7 @@ static krb5_error_code get_credentials(context, cred, server, now,
krb5_creds in_creds;
k5_mutex_assert_locked(&cred->lock);
- memset((char *) &in_creds, 0, sizeof(krb5_creds));
+ memset(&in_creds, 0, sizeof(krb5_creds));
in_creds.client = in_creds.server = NULL;
if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client)))
diff --git a/src/lib/gssapi/krb5/util_crypt.c b/src/lib/gssapi/krb5/util_crypt.c
index a8558a5944..a800c1582e 100644
--- a/src/lib/gssapi/krb5/util_crypt.c
+++ b/src/lib/gssapi/krb5/util_crypt.c
@@ -345,10 +345,10 @@ kg_arcfour_docrypt (const krb5_keyblock *longterm_key , int ms_usage,
&seq_enc_key, 0,
&input, &output));
cleanup_arcfour:
- memset ((void *) seq_enc_key.contents, 0, seq_enc_key.length);
- memset ((void *) usage_key.contents, 0, usage_key.length);
- free ((void *) usage_key.contents);
- free ((void *) seq_enc_key.contents);
+ memset (seq_enc_key.contents, 0, seq_enc_key.length);
+ memset (usage_key.contents, 0, usage_key.length);
+ free (usage_key.contents);
+ free (seq_enc_key.contents);
return (code);
}
@@ -713,10 +713,10 @@ kg_arcfour_docrypt_iov (krb5_context context,
&seq_enc_key, 0,
kiov, kiov_count));
cleanup_arcfour:
- memset ((void *) seq_enc_key.contents, 0, seq_enc_key.length);
- memset ((void *) usage_key.contents, 0, usage_key.length);
- free ((void *) usage_key.contents);
- free ((void *) seq_enc_key.contents);
+ memset (seq_enc_key.contents, 0, seq_enc_key.length);
+ memset (usage_key.contents, 0, usage_key.length);
+ free (usage_key.contents);
+ free (seq_enc_key.contents);
if (kiov != NULL)
free(kiov);
return (code);