From 87c8dd5434a54a8385e08656105fe51d8f5a13a0 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 11 Sep 2018 14:11:50 +0000 Subject: [PATCH] - Fix initialisation in remote.c git-svn-id: file:///svn/unbound/trunk@4894 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/remote.c | 3 ++- doc/Changelog | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/remote.c b/daemon/remote.c index 91e5609f5..6a8ff4dcc 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -275,12 +275,13 @@ add_open(const char* ip, int nr, struct listen_port** list, int noproto_is_err, struct addrinfo hints; struct addrinfo* res; struct listen_port* n; - int noproto; + int noproto = 0; int fd, r; char port[15]; snprintf(port, sizeof(port), "%d", nr); port[sizeof(port)-1]=0; memset(&hints, 0, sizeof(hints)); + log_assert(ip); if(ip[0] == '/') { /* This looks like a local socket */ diff --git a/doc/Changelog b/doc/Changelog index 6b81d0aee..1a695bc35 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ - Fix to squelch respip warning in unit test, it is printed at higher verbosity settings. - Fix spelling errors. + - Fix initialisation in remote.c 10 September 2018: Wouter - 1.8.1 in svn trunk. (changes from 4,5,.. sep apply).