]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
A2065 Cable not connected crash fix.
authorToni Wilen <twilen@winuae.net>
Tue, 2 Jun 2015 17:05:41 +0000 (20:05 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 2 Jun 2015 17:05:41 +0000 (20:05 +0300)
ethernet.cpp

index 45ec498fd848e3ba9895b7e5769de4ff4e957e43..2acf8503572d1aa232fa865ea1af69878ff16341 100644 (file)
@@ -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: