rx: Handle negative returns on packet reads
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 30 Mar 2012 18:37:36 +0000 (19:37 +0100)
committerDerrick Brashear <shadow@dementix.org>
Mon, 9 Apr 2012 01:16:59 +0000 (18:16 -0700)
commit438d6ba63cda7d7484c545a4fd181803e84d68eb
tree774ffca91c392d421617c08becfc477781a5ee57
parent4e68282e26b0c4569d25d076d54274f0da47a691
rx: Handle negative returns on packet reads

rxi_RecvMsg returns an int, because it can return a negative value upon
error. Don't store its return value as an unsigned int, because this may
hide the potential errors.

Modify the error handling loop so that errors get to where they are
intended.

Change-Id: I212e5881f83a2a95c177c23dbc2da2583155f1aa
Reviewed-on: http://gerrit.openafs.org/7087
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/rx/rx_packet.c