Browse Source

Fixed coredump

pull/996/head
small_5 3 years ago
parent
commit
43a0ab67a2
  1. 13
      src/edge_utils.c

13
src/edge_utils.c

@ -1061,13 +1061,14 @@ static ssize_t sendto_fd (n2n_edge_t *eee, const void *buf,
traceEvent(level, "WSAGetLastError(): %u", WSAGetLastError()); traceEvent(level, "WSAGetLastError(): %u", WSAGetLastError());
#endif #endif
} }
} else {
/* we reach here, either because !check_sock_ready() or (errno) */
supernode_disconnect(eee);
eee->sn_wait = 1;
traceEvent(TRACE_DEBUG, "disconnected supernode due to error while sendto_fd");
return -1;
} }
return sent;
/* we reach here, either because !check_sock_ready() or (errno) */
supernode_disconnect(eee);
eee->sn_wait = 1;
traceEvent(TRACE_DEBUG, "disconnected supernode due to error while sendto_fd");
return -1;
} }

Loading…
Cancel
Save