projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a0f10a
)
xenstored: handle unlikely failure better in ask_parents
author
Matthew Daley
<mattjd@gmail.com>
Wed, 18 Sep 2013 03:37:54 +0000
(15:37 +1200)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 25 Sep 2013 12:23:12 +0000
(13:23 +0100)
Coverity-ID:
1055277
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstore/xenstored_core.c
patch
|
blob
|
history
diff --git
a/tools/xenstore/xenstored_core.c
b/tools/xenstore/xenstored_core.c
index a2cf2a66a3e352099dd37f3ac4c3c4fdb10e4663..0f8ba64499d39d57183c96d4e35b0a254befe885 100644
(file)
--- a/
tools/xenstore/xenstored_core.c
+++ b/
tools/xenstore/xenstored_core.c
@@
-523,8
+523,10
@@
static enum xs_perm_type ask_parents(struct connection *conn, const char *name)
} while (!streq(name, "/"));
/* No permission at root? We're in trouble. */
- if (!node)
+ if (!node)
{
corrupt(conn, "No permissions file at root");
+ return XS_PERM_NONE;
+ }
return perm_for_conn(conn, node->perms, node->num_perms);
}