]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix bugs in kadm5_auth commit 688/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 19 Aug 2017 18:21:31 +0000 (14:21 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 21 Aug 2017 20:19:54 +0000 (16:19 -0400)
Commit 92a1a7efe2fc43337416098f2227038a72f1e35a uses line after it is
freed in load_acl_file().  Move the k5_setmsg() call earlier to fix
it.  The same commit also used the wrong header underline in
krb5_conf.rst for the kadm5_auth interface subsection.  Fix it.

ticket: 8595

doc/admin/conf_files/krb5_conf.rst
src/kadmin/server/auth_acl.c

index 7951149132928ebc83eff8000aeb456bf15c1541..fbcf192995709fe75ae2e12e301252dd17c6749c 100644 (file)
@@ -781,7 +781,7 @@ in for this interface.
 .. _kadm5_auth:
 
 kadm5_auth interface
-====================
+####################
 
 The kadm5_auth section (introduced in release 1.16) controls modules
 for the kadmin authorization interface, which determines whether a
index 1f804badf11e322da6ddaabee02f8dc8014f812b..efe9c6961bbb5b547d8c91ce3e50a14f0be60b05 100644 (file)
@@ -418,12 +418,12 @@ load_acl_file(krb5_context context, const char *fname, struct acl_state *state)
             krb5_klog_syslog(LOG_ERR,
                              _("%s: syntax error at line %d <%.10s...>"),
                              fname, lineno, line);
-            free_acl_entries(state);
-            free(line);
-            fclose(fp);
             k5_setmsg(context, EINVAL,
                       _("%s: syntax error at line %d <%.10s...>"),
                       fname, lineno, line);
+            free_acl_entries(state);
+            free(line);
+            fclose(fp);
             return EINVAL;
         }
         entry_slot = &(*entry_slot)->next;