(krb5_config_parse_file_debug): punt if there is binding before a

section declaration. Bug found by Arkadiusz Miskiewicz <arekm@pld-linux.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12999 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-10-13 13:20:46 +00:00
parent 3d11618b33
commit c5bd98ca49

View File

@@ -250,6 +250,11 @@ krb5_config_parse_file_debug (const char *fname,
ret = EINVAL; /* XXX */
goto out;
} else if(*p != '\0') {
if (s == NULL) {
*error_message = "binding before section";
ret = EINVAL;
goto out;
}
ret = parse_binding(f, lineno, p, &b, &s->u.list, error_message);
if (ret)
goto out;