[XENSTORED] Fix errno 'leak' in xenstored.
authorkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 11 Nov 2006 01:23:11 +0000 (01:23 +0000)
committerkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 11 Nov 2006 01:23:11 +0000 (01:23 +0000)
commit22ed12a0f3266df4714057f9bdf2dfc9577bf80e
tree45cd6b4105d6f1addc5d325c3981766ec793a9b5
parente4ecc8e7f777f32e6512def4a25f7d1f7b1bd52b
[XENSTORED] Fix errno 'leak' in xenstored.

In certain cases, when a client doesn't have enough permissions, the
errno variable is not set in xenstored_core.c before its value is
reported back.  As a result, the client can learn about the errno of
the last failed request to xenstored (which could have come from
another client).  (An unintended information channel! :-)

From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/xenstore/xenstored_core.c