Commit a52a117f authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Add missing check for objattr variable in load_registry wineserver call (Coverity).

parent 28afe7fc
...@@ -2187,6 +2187,8 @@ DECL_HANDLER(load_registry) ...@@ -2187,6 +2187,8 @@ DECL_HANDLER(load_registry)
const struct security_descriptor *sd; const struct security_descriptor *sd;
const struct object_attributes *objattr = get_req_object_attributes( &sd, &name ); const struct object_attributes *objattr = get_req_object_attributes( &sd, &name );
if (!objattr) return;
if (!thread_single_check_privilege( current, &SeRestorePrivilege )) if (!thread_single_check_privilege( current, &SeRestorePrivilege ))
{ {
set_error( STATUS_PRIVILEGE_NOT_HELD ); set_error( STATUS_PRIVILEGE_NOT_HELD );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment