]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix initialisation in remote.c
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Sep 2018 14:11:50 +0000 (14:11 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Sep 2018 14:11:50 +0000 (14:11 +0000)
git-svn-id: file:///svn/unbound/trunk@4894 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/remote.c
doc/Changelog

index 91e5609f50f8afb5dad0ebcab4b78d7d5e024cdf..6a8ff4dcc5bad790ec43dccb096b7a5a3b2a7db5 100644 (file)
@@ -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 */
index 6b81d0aee88db91dc917516da8e62622d9f1a93e..1a695bc35edd34cfa66f822bcb8639d9232f0f35 100644 (file)
@@ -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).