]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix EOF check in kadm5.acl line processing
authorRobbie Harwood <rharwood@redhat.com>
Wed, 13 Jan 2016 23:17:09 +0000 (18:17 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 14 Jan 2016 16:38:03 +0000 (11:38 -0500)
commit8fd85a77789496b8d7f8092f6e8a2824bc09a6cf
tree9b3337e94eab7963fb8da1b2402bfa70b8d18610
parent9914b93516bbce9b1123ed5f9f796b7028944892
Fix EOF check in kadm5.acl line processing

On platforms where the char type is unsigned, the check for EOF (which
is negative) will always fail, leaving a 255 byte at the end of the
line.  This can cause a syntax error, in turn causing the contents of
kadm5.acl to be ignored.  Fix this bug by removing the cast on EOF.

[ghudson@mit.edu: more precisely describe consequences of bug in
commit message]

ticket: 8346 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
src/lib/kadm5/srv/server_acl.c