Fix 64-bit Windows socket write error handling
Add casts to ensure that the result type of SOCKET_WRITEV() on Windows can represent -1. Otherwise it will be treated as 2^32-1 when cast to ssize_t on 64-bit Windows, which can lead to crashes in krb5_sendto_kdc(). Reported by Puran Chand. (cherry picked from commit d98c3238) ticket: 8746 version_fixed: 1.13.8
Please register or sign in to comment