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:
Flavio Santes 2016-08-04 09:49:25 -05:00 committed by Inaky Perez-Gonzalez
commit 57cf077e9c

View file

@ -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) static int netz_prepare(struct netz_ctx_t *ctx, enum ip_protocol proto)
{ {
#ifdef CONFIG_NETWORKING_WITH_TCP #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; int rc;
#endif #endif