server: set_server_state needs to be called with non-NULL server.

Spotted by Coverity.
This commit is contained in:
Marcus Meissner 2007-05-08 21:13:14 +02:00 committed by Alexandre Julliard
parent 0a5e707a39
commit fea59c87ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;