return -EINVAL;
}
+ fcntl(dtls_fd, F_SETFD, FD_CLOEXEC);
+
dtls_method = DTLSv1_client_method();
dtls_ctx = SSL_CTX_new(dtls_method);
SSL_CTX_set_read_ahead(dtls_ctx, 1);
fprintf(stderr, "Failed to connect to host %s\n", vpninfo->hostname);
return -EINVAL;
}
+ fcntl(ssl_sock, F_SETFD, FD_CLOEXEC);
ssl3_method = SSLv23_client_method();
https_ctx = SSL_CTX_new(ssl3_method);
exit(1);
}
+ fcntl(tun_fd, F_SETFD, FD_CLOEXEC);
+
net_fd = socket(PF_INET, SOCK_DGRAM, 0);
if (net_fd < 0) {
perror("open net");