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).