lib/krb5: krb5_config_parse_file_multi use after free
commit23ee804e9d23ed83a3a502501dbe5fe50ab9094a
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 18 Mar 2017 15:06:45 +0000 (18 11:06 -0400)
committerViktor Dukhovni <viktor1ghub@dukhovni.org>
Sat, 18 Mar 2017 19:22:33 +0000 (18 15:22 -0400)
tree4575a29f770797efaee08721bcbe008b7bdb3320
parentd8a112ae1a40df425e844a059873f31d7319a7ba
lib/krb5: krb5_config_parse_file_multi use after free

If the file is not a regular file, the 'fname' buffer will be freed
before it is passed to the krb5_set_error_message() routine.  That
this is true is not obvious from code inspection but 'newfname'
and 'fname' refer to the same memory.

Change-Id: I7780eae9ceaf01b245df488a2f7d7f406770864f
lib/krb5/config_file.c