From: Wouter Wijngaards Date: Thu, 15 Mar 2018 14:28:04 +0000 (+0000) Subject: fix. X-Git-Tag: release-1.7.1rc1~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=554b8b35aed2e7f263aee44d6b7561ccd1c2a8dc;p=thirdparty%2Funbound.git fix. git-svn-id: file:///svn/unbound/trunk@4590 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 3e7664dfa..6639fd3fc 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -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;