From 94ab2e9b79f7327fcbccde503b0699217634bf2c Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 30 May 2018 18:28:38 +0100 Subject: [PATCH] Fix MAC address command line parsing We weren't setting valid to true + incrementing our count when we saw a MAC address on the command line. --- mqtt-arp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mqtt-arp.c b/mqtt-arp.c index 6c83cca..2badfac 100644 --- a/mqtt-arp.c +++ b/mqtt-arp.c @@ -329,6 +329,8 @@ int main(int argc, char *argv[]) &config.macs[macs].mac[3], &config.macs[macs].mac[4], &config.macs[macs].mac[5]); + config.macs[macs].valid = true; + macs++; break; case 'p': config.mqtt_port = atoi(optarg); -- 2.39.5