]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix spin loop reading from KDC TCP socket
authorViktor Dukhovni <viktor@twosigma.com>
Tue, 25 Jun 2013 16:27:42 +0000 (12:27 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 26 Jun 2013 05:54:03 +0000 (01:54 -0400)
commit53e5c850e05f011e9e7f25c2032aec51d8b352a9
treee0ea9c6f6bbacde38d215590668c5c8dabb38d88
parent7bca89626e53f258397818a9b0d838a0a3e00f5b
Fix spin loop reading from KDC TCP socket

In the k5_sendto code for reading from a TCP socket, detect
end-of-stream when reading the length.  Otherwise we can get stuck in
an infinite loop of poll() and read().

[ghudson@mit.edu: commit message]

ticket: 7508
target_version: 1.11.4
tags: pullup
src/lib/krb5/os/sendto_kdc.c