Skip to content
Snippets Groups Projects
Commit f5bec048 authored by Greg Hudson's avatar Greg Hudson
Browse files

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
parent cfa1552d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment