Don't discard return code from overlay_mdp_client_init. IMO this should be assert(mdp_client_socket != -1) though.

This commit is contained in:
Daniel O'Connor 2012-04-27 18:52:39 +09:30
parent c2de68449b
commit 7cb980ab5c

View File

@ -1098,7 +1098,9 @@ int overlay_mdp_send(overlay_mdp_frame *mdp,int flags,int timeout_ms)
{
int len=4;
if (mdp_client_socket==-1) overlay_mdp_client_init();
if (mdp_client_socket==-1)
if (overlay_mdp_client_init() != 0)
return -1;
/* Minimise frame length to save work and prevent accidental disclosure of
memory contents. */