From bfd47918c755f5049e06d79b36e31f2eecc679e6 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 8 May 1990 13:43:26 +0000 Subject: [PATCH] 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 --- src/lib/krb5/keytab/read_servi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/keytab/read_servi.c b/src/lib/krb5/keytab/read_servi.c index 8ecbae94d..a7ccfb7ff 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); } -- 2.26.2