server: Handle NULL thread in send_hardware_message (Coverity).
This commit is contained in:
parent
a09621b00f
commit
3b86f463b5
|
@ -1720,7 +1720,7 @@ DECL_HANDLER(send_hardware_message)
|
|||
|
||||
if (!(data = mem_alloc( sizeof(*data) )))
|
||||
{
|
||||
release_object( thread );
|
||||
if (thread) release_object( thread );
|
||||
return;
|
||||
}
|
||||
memset( data, 0, sizeof(*data) );
|
||||
|
|
Loading…
Reference in New Issue