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

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