heimdal: fix endless loop for specific KDC error code
authorUri Simchoni <urisimchoni@gmail.com>
Mon, 15 Jun 2015 19:33:28 +0000 (22:33 +0300)
committerJeremy Allison <jra@samba.org>
Wed, 17 Jun 2015 00:34:31 +0000 (02:34 +0200)
commit12079b412d0c4467980f7cce48c16edf4c86bcf5
tree40e3fc58457e0f4a7aa65410e7356888648c7226
parentcf598156dd947b839a6ccb6d88868c5080ec5907
heimdal: fix endless loop for specific KDC error code

When sending a Kerberos request, if at least one of the available
KDCs repeatedly replies with an error response of
KRB5KDC_ERR_SVC_UNAVAILABLE, and all other KDCs, if there are any,
do not reply at all or cannot be contacted, then the code repeatedly
retries to send the request in an endless loop.

This is fixed in upstream (post 1.5 branch) heimdal but the code
there is vastly refactored, so this is an independent fix to the issue.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jun 17 02:34:31 CEST 2015 on sn-devel-104
source4/heimdal/lib/krb5/krbhst.c
source4/heimdal/lib/krb5/send_to_kdc.c