]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix and simplify auth-indicator authdata module 472/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 21 Jun 2016 22:29:00 +0000 (18:29 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 22 Jun 2016 16:47:47 +0000 (12:47 -0400)
commit0b741b1ee4005a68aee76616642a91ba85042f05
tree0444ff6aa7de108fe3f1644cf3494ae66bb43829
parent7df4aec92aebabaaf14de9de062f526228e65f48
Fix and simplify auth-indicator authdata module

Remove the authind_context count field.  The indicators list must be
null-terminated because it is freed with k5_free_data_ptr_list().
authind_internalize() didn't null-terminate the list, and the presence
of the count field made it appear that this wasn't a bug.  Use a
different scheme for setting *more in authind_get_attribute() to avoid
requiring an element count.

Also check more thoroughly for errors in authind_externalize() and
authind_internalize(), and remove some unnecessary pointer casts.

ticket: 8425
src/lib/krb5/krb/ai_authdata.c