http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28afe7f
)
server: Add missing check for objattr variable in load_registry wineserver call ...
author
Sebastian Lackner
<sebastian@fds-team.de>
Sun, 24 Jan 2016 17:50:43 +0000
(18:50 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 25 Jan 2016 07:14:36 +0000
(16:14 +0900)
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
server/registry.c
patch
|
blob
|
blame
|
history
diff --git
a/server/registry.c
b/server/registry.c
index 5723824ff2389755cdd9ca1d8d2c95cc9bfda467..a35765c72f484f73be6a947b0409a0a5ddf94111 100644
(file)
--- a/
server/registry.c
+++ b/
server/registry.c
@@
-2187,6
+2187,8
@@
DECL_HANDLER(load_registry)
const struct security_descriptor *sd;
const struct object_attributes *objattr = get_req_object_attributes( &sd, &name );
+ if (!objattr) return;
+
if (!thread_single_check_privilege( current, &SeRestorePrivilege ))
{
set_error( STATUS_PRIVILEGE_NOT_HELD );