This commit is contained in:
jeka committed 2026-02-16 23:42:28 +03:00
1 parent 3ab19094d0
commit 8a3cdaf759
2 files changed
+1 -55

No files matched your search

+1 -1
View File
@@ -592,7 +592,7 @@ int etcp_encrypt_send(struct ETCP_DGRAM* dgram) {
int errcode=0;
sc_context_t* sc = &dgram->link->etcp->crypto_ctx;
int len=dgram->data_len-dgram->noencrypt_len;// не забываем добавить timestamp (2 bytes)
if (len<=0 || len>1480) { dgram->link->send_errors++; errcode=1; goto es_err; }
if (len<0 || len>1480) { dgram->link->send_errors++; errcode=1; goto es_err; }
uint8_t enc_buf[1600];
size_t enc_buf_len=0;
dgram->timestamp=get_current_timestamp();