mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-22 06:27:51 +00:00
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:
parent
c2de68449b
commit
7cb980ab5c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user