]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix use_master handling with KDC hook reply 465/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 9 Jun 2016 17:23:48 +0000 (13:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Jun 2016 14:35:37 +0000 (10:35 -0400)
commit603a14f9eb8a81556502fcdc5fac65f0d4f323dc
treea5a12d6a751a7a67dd330538d055c30b34d270ac
parent5fca279ca4d18f1b5798847a98e7df8737d2eb7c
Fix use_master handling with KDC hook reply

A post-receive KDC hook may synthesize a reply if k5_sendto() returns
an error.  If this happens, krb5_sendto_kdc() must not use server_used
to check if the reply came from a master KDC, as it does not have a
valid value.  Preemptively set *use_master to 1 in this case to bypass
the check.

ticket: 8386
src/lib/krb5/os/sendto_kdc.c