rx: Save errno in LWP rxi_Sendmsg
authorAndrew Deason <adeason@sinenomine.net>
Tue, 11 Sep 2012 23:46:42 +0000 (18:46 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 25 Sep 2012 03:43:06 +0000 (20:43 -0700)
commit347908cd0031c558c266ec412aa49200ae2b3204
treeed493d4086106957eadd2405d4a081ac49776c18
parent27ee85123284b77004c757fec7cd6c9af3078e05
rx: Save errno in LWP rxi_Sendmsg

Much of this code examines errno or WSAGetLastError to determine what
to do. However, some other operations between the actual sendmsg call
and code that examines errno may modify errno. So, save the value of
errno to ensure errno reflects the actual error we got from sendmsg;
this also slightly simplifies some of the logic.

Change-Id: I5a8643fce5d2e29131069743b14805bbc2428805
Reviewed-on: http://gerrit.openafs.org/8110
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/rx/rx_lwp.c