server: Add missing check for objattr variable in load_registry wineserver call ...
authorSebastian Lackner <sebastian@fds-team.de>
Sun, 24 Jan 2016 17:50:43 +0000 (18:50 +0100)
committerAlexandre 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

index 5723824ff2389755cdd9ca1d8d2c95cc9bfda467..a35765c72f484f73be6a947b0409a0a5ddf94111 100644 (file)
@@ -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 );