[1/2] server: Add missing check for objattr variable in load_registry wineserver call (Coverity).
Sebastian Lackner
sebastian at fds-team.de
Sun Jan 24 11:50:43 CST 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
server/registry.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/registry.c b/server/registry.c
index 5723824..a35765c 100644
--- 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 );
--
2.6.4
More information about the wine-patches
mailing list