From 17eba8a48fb735379428bb400e1c108e711ff8bf Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 30 May 2018 14:24:04 +1000 Subject: [PATCH] fix mnettoftn --- utils/mnet | 2 +- utils/mnetftn/mnettoftn.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/utils/mnet b/utils/mnet index 864d107..fc8b2b3 160000 --- a/utils/mnet +++ b/utils/mnet @@ -1 +1 @@ -Subproject commit 864d1078a4980f1a791998b154411bbe4128d9ee +Subproject commit fc8b2b372db8fc1e0fd257843ce4d14d6813adf4 diff --git a/utils/mnetftn/mnettoftn.c b/utils/mnetftn/mnettoftn.c index 2e7b412..1c62106 100644 --- a/utils/mnetftn/mnettoftn.c +++ b/utils/mnetftn/mnettoftn.c @@ -410,6 +410,9 @@ int import(char *filename) { } return 1; } else { + + areaid = -1; + for (i=0;iid) { areaid = i; @@ -417,6 +420,10 @@ int import(char *filename) { } } + if (areaid == -1) { + return 1; + } + if (areas[areaid]->hub == mynode) { if (msg.type == 1) { if (strncasecmp(body, "ADD", 3) == 0) {