Blame SOURCES/dnsmasq-2.76-fix-crash-dns-resume.patch

33b374
From 16800ea072dd0cdf14d951c4bb8d2808b3dfe53d Mon Sep 17 00:00:00 2001
33b374
From: Simon Kelley <simon@thekelleys.org.uk>
33b374
Date: Tue, 30 Aug 2016 23:07:06 +0100
33b374
Subject: [PATCH] Fix crash introduced in
33b374
 2675f2061525bc954be14988d64384b74aa7bf8b
33b374
33b374
---
33b374
 src/network.c | 5 +++--
33b374
 1 file changed, 3 insertions(+), 2 deletions(-)
33b374
33b374
diff --git a/src/network.c b/src/network.c
33b374
index ddf8d31..d87d08f 100644
33b374
--- a/src/network.c
33b374
+++ b/src/network.c
33b374
@@ -1516,8 +1516,9 @@ void check_servers(void)
33b374
 	      serv->flags |= SERV_MARK;
33b374
 	      continue;
33b374
 	    }
33b374
-
33b374
-	  serv->sfd->used = 1;
33b374
+	  
33b374
+	  if (serv->sfd)
33b374
+	    serv->sfd->used = 1;
33b374
 	}
33b374
       
33b374
       if (!(serv->flags & SERV_NO_REBIND) && !(serv->flags & SERV_LITERAL_ADDRESS))
33b374
-- 
33b374
2.9.3
33b374