]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Mar 2018 14:28:04 +0000 (14:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 Mar 2018 14:28:04 +0000 (14:28 +0000)
git-svn-id: file:///svn/unbound/trunk@4590 be551aaa-1e26-0410-a405-d3ace91eadb9

services/listen_dnsport.c

index 3e7664dfa3771e3dbd51eb2aef4b0d24d9f16a0b..6639fd3fc5cf05e20c9fa70532d5212f31de605d 100644 (file)
@@ -1068,7 +1068,9 @@ if_is_ssl(const char* ifname, const char* port, int ssl_port,
        if(p && atoi(p+1) == ssl_port)
                return 1;
        for(s = additional_tls_port; s; s = s->next) {
-               if(atoi(s->str) == atoi(port))
+               if(p && atoi(p+1) == atoi(s->str))
+                       return 1;
+               if(!p && atoi(port) == atoi(s->str))
                        return 1;
        }
        return 0;