server: set_server_state needs to be called with non-NULL server.
Spotted by Coverity.
This commit is contained in:
parent
0a5e707a39
commit
fea59c87ad
|
@ -739,7 +739,7 @@ static struct pipe_server *create_pipe_server( struct named_pipe *pipe, unsigned
|
|||
if (!(server->ioctl_fd = alloc_pseudo_fd( &pipe_server_fd_ops, &server->obj, options )))
|
||||
{
|
||||
release_object( server );
|
||||
server = NULL;
|
||||
return NULL;
|
||||
}
|
||||
set_server_state( server, ps_idle_server );
|
||||
return server;
|
||||
|
|
Loading…
Reference in New Issue