From: John Kohl Date: Tue, 8 May 1990 13:43:26 +0000 (+0000) Subject: add missing braces X-Git-Tag: krb5-1.0-alpha2~626 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfd47918c755f5049e06d79b36e31f2eecc679e6;p=krb5.git 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 --- 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); }