1
This commit is contained in:
1 parent
3ab19094d0
commit
8a3cdaf759
2 files changed
+1
-55
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user