From bb5e5f19dc57c8215393be03c3ddec0524c6061f Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 2 Jun 2015 20:05:41 +0300 Subject: [PATCH] A2065 Cable not connected crash fix. --- ethernet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethernet.cpp b/ethernet.cpp index 45ec498f..2acf8503 100644 --- a/ethernet.cpp +++ b/ethernet.cpp @@ -59,6 +59,8 @@ void slirp_output (const uint8 *pkt, int pkt_len) void ethernet_trigger (struct netdriverdata *ndd, void *vsd) { + if (!ndd) + return; switch (ndd->type) { case UAENET_SLIRP: -- 2.47.3