Martin Prikryl helpfully points out that when I revamped the socket
error mechanism using toplevel callbacks, I also accidentally passed
the error code to the wrong function. Use winsock_error_string instead.
[originally from svn r10048]
/*
* An error has occurred on this socket. Pass it to the plug.
*/
- plug_closing(s->plug, strerror(s->pending_error), s->pending_error, 0);
+ plug_closing(s->plug, winsock_error_string(s->pending_error),
+ s->pending_error, 0);
}
/*