server: Avoid invalid memory access if creation of namespace fails in create_directory (Coverity).
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a52a117f80
commit
9dab25c124
|
@ -192,7 +192,7 @@ static struct directory *create_directory( struct directory *root, const struct
|
||||||
if (!(dir->entries = create_namespace( hash_size )))
|
if (!(dir->entries = create_namespace( hash_size )))
|
||||||
{
|
{
|
||||||
release_object( dir );
|
release_object( dir );
|
||||||
dir = NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (sd) default_set_sd( &dir->obj, sd, OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
|
if (sd) default_set_sd( &dir->obj, sd, OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |
|
||||||
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION );
|
DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION );
|
||||||
|
|
Loading…
Reference in New Issue