nats: FIX: update hack to handle dummy packet for TCP connect
The zero bytes hack to connect was deprecated by last commits, so now we send 1 byte initialized to 0 :). Jira: ZEP-612 Change-Id: Ie9e65fad3945d0babc4287e287be3aa57d68ed5a Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
parent
b0cd36040c
commit
57cf077e9c
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ void netz_remote_ipv4(struct netz_ctx_t *ctx, uint8_t a1, uint8_t a2,
|
|||
static int netz_prepare(struct netz_ctx_t *ctx, enum ip_protocol proto)
|
||||
{
|
||||
#ifdef CONFIG_NETWORKING_WITH_TCP
|
||||
struct app_buf_t buf = APP_BUF_INIT(NULL, 0, 0);
|
||||
uint8_t data = 0;
|
||||
struct app_buf_t buf = APP_BUF_INIT(&data, 1, 1);
|
||||
int rc;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue