mctp-demux: eid option requires an argument
The -e option in mctp-demux-daemon parameters is meant to accept a
fixed local EID, but it was declared as not taking a parameter.
Passing an EID caused optarg to be NULL,leading to a crash when
parsing arguments.
Change-Id: I63fd5f503a93f61b1f83ffe7becd3fe0c5699128
Signed-off-by: Roger G. Coscojuela <roger.gili-coscojuela@sipearl.com>
diff --git a/utils/mctp-demux-daemon.c b/utils/mctp-demux-daemon.c
index f65f4da..a9e1e02 100644
--- a/utils/mctp-demux-daemon.c
+++ b/utils/mctp-demux-daemon.c
@@ -613,7 +613,7 @@
ctx->pcap.socket.path = NULL;
for (;;) {
- rc = getopt_long(argc, argv, "b:es::v", options, NULL);
+ rc = getopt_long(argc, argv, "b:e:s::v", options, NULL);
if (rc == -1)
break;
switch (rc) {