summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/keytab
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-08 13:43:26 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-08 13:43:26 +0000
commitbfd47918c755f5049e06d79b36e31f2eecc679e6 (patch)
tree87150754ec00cb122727db3d0709f96e4c23962b /src/lib/krb5/keytab
parent38c6a48143fe4c614de4c697ddb2749f680cd422 (diff)
downloadkrb5-bfd47918c755f5049e06d79b36e31f2eecc679e6.tar.gz
krb5-bfd47918c755f5049e06d79b36e31f2eecc679e6.tar.xz
krb5-bfd47918c755f5049e06d79b36e31f2eecc679e6.zip
add missing braces
fix arg to copy_keyblock free the entry git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@779 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/keytab')
-rw-r--r--src/lib/krb5/keytab/read_servi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/krb5/keytab/read_servi.c b/src/lib/krb5/keytab/read_servi.c
index 8ecbae94dc..a7ccfb7ff4 100644
--- a/src/lib/krb5/keytab/read_servi.c
+++ b/src/lib/krb5/keytab/read_servi.c
@@ -57,11 +57,11 @@ OLDDECLARG(krb5_keyblock **, key)
/*
* Get the name of the file that we should use.
*/
- if (keyprocarg == NULL)
+ if (keyprocarg == NULL) {
if ((kerror = krb5_kt_default_name((char *)keytabname,
sizeof(keytabname) - 1))!= KSUCCESS)
return (kerror);
- else {
+ } else {
bzero(keytabname, sizeof(keytabname));
(void) strncpy(keytabname, (char *)keyprocarg,
sizeof(keytabname) - 1);
@@ -85,10 +85,9 @@ OLDDECLARG(krb5_keyblock **, key)
if ((*key = (krb5_keyblock *)malloc(sizeof(krb5_keyblock))) == NULL)
return (ENOMEM); /* XXX */
- krb5_copy_keyblock(entry.key, *key);
+ krb5_copy_keyblock(&entry.key, *key);
- /* Zero the memory containing the key */
- bzero((char *)&entry, sizeof(krb5_keytab_entry));
+ krb5_kt_free_entry(&entry);
return (KSUCCESS);
}