]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup fd pass.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 29 Apr 2019 08:40:12 +0000 (10:40 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 29 Apr 2019 08:40:12 +0000 (10:40 +0200)
services/outside_network.c

index a7f6f0d0905cc20b2f131a7bd2bf2231a129a724..779656fee011911c065ecee7c4c44c29b5771ea8 100644 (file)
@@ -2284,7 +2284,7 @@ outnet_comm_point_for_udp(struct outside_network* outnet,
 /** setup SSL for comm point */
 static int
 setup_comm_ssl(struct comm_point* cp, struct outside_network* outnet,
-       char* host)
+       int fd, char* host)
 {
        cp->ssl = outgoing_ssl_fd(outnet->sslctx, fd);
        if(!cp->ssl) {
@@ -2355,7 +2355,7 @@ outnet_comm_point_for_tcp(struct outside_network* outnet,
 
        /* setup for SSL (if needed) */
        if(ssl) {
-               if(!setup_comm_ssl(cp, outnet, host)) {
+               if(!setup_comm_ssl(cp, outnet, fd, host)) {
                        log_err("cannot setup XoT");
                        comm_point_delete(cp);
                        return NULL;
@@ -2418,7 +2418,7 @@ outnet_comm_point_for_http(struct outside_network* outnet,
 
        /* setup for SSL (if needed) */
        if(ssl) {
-               if(!setup_comm_ssl(cp, outnet, host)) {
+               if(!setup_comm_ssl(cp, outnet, fd, host)) {
                        log_err("cannot setup https");
                        comm_point_delete(cp);
                        return NULL;