From 37c1d7ea58d74980b5a140ddde6fd62f005f4a42 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 1 Mar 2019 21:41:06 +1100 Subject: [PATCH] [c-host] dont use a interface that fails to create --- c-host/app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c-host/app.c b/c-host/app.c index 5e96b129..b7ee6365 100644 --- a/c-host/app.c +++ b/c-host/app.c @@ -164,8 +164,12 @@ int app_main(bool * termSignal) { iface = CaptureInterfaces[i]; DEBUG_INFO("Trying : %s", iface->getName()); + if (!iface->create()) + { + iface = NULL; continue; + } if (iface->init()) break;