Browse Source

Backup before NAT cancel fix

congestion
Evgeny 5 months ago
parent
commit
7a4e7ca4ae
  1. 5
      src/etcp_api.c

5
src/etcp_api.c

@ -114,6 +114,11 @@ int etcp_send(struct ETCP_CONN* conn, struct ll_entry* entry) {
DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: Connection has no normalizer"); DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: Connection has no normalizer");
return -1; return -1;
} }
if (conn->initialized==0) {
DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: Connection is not initialized");
return -1;
}
struct PKTNORM* pn = conn->normalizer; struct PKTNORM* pn = conn->normalizer;
if (!pn || !pn->input) { if (!pn || !pn->input) {
DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: pn=%p or input null", pn); DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: pn=%p or input null", pn);

Loading…
Cancel
Save