net.openssl: correctly assign nil to reference values after the recent notice about it (#19981)

This commit is contained in:
Kim Shrier 2023-11-24 00:38:05 -07:00 committed by GitHub
parent eeb8d27c6d
commit be544d73f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,8 @@ pub fn new_ssl_conn(config SSLConnectConfig) !&SSLConn {
}
mut conn := &SSLConn{
config: config
sslctx: 0
ssl: 0
sslctx: unsafe { nil }
ssl: unsafe { nil }
handle: 0
}
conn.init() or { return err }