From 7a4e7ca4ae7aa9a1e1acf01a2026e23468bee033 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 22 Apr 2026 22:07:33 +0300 Subject: [PATCH] Backup before NAT cancel fix --- src/etcp_api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/etcp_api.c b/src/etcp_api.c index 98332324..02c925b3 100644 --- a/src/etcp_api.c +++ b/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"); 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; if (!pn || !pn->input) { DEBUG_ERROR(DEBUG_CATEGORY_ETCP_API, "etcp_send: pn=%p or input null", pn);