Use the correct var for the file handle https://github.com/webmin/webmin/issues/404

This commit is contained in:
Jamie Cameron
2016-07-11 02:12:34 -07:00
parent 8f18e8cdf4
commit 7de1f09c9f

View File

@@ -930,7 +930,7 @@ elsif ($sm) {
&error("Failed to create SSL context");
$h->{'ssl_con'} = Net::SSLeay::new($h->{'ssl_ctx'}) ||
&error("Failed to create SSL connection");
Net::SSLeay::set_fd($h->{'ssl_con'}, fileno(MAIL));
Net::SSLeay::set_fd($h->{'ssl_con'}, fileno($h->{'fh'}));
Net::SSLeay::connect($h->{'ssl_con'}) ||
&error("SSL connect() failed");
}