rtl8720dn: improve error handling

This commit is contained in:
sago35
2022-07-23 13:58:12 +09:00
committed by Ron Evans
parent b64d4ec3a0
commit 625c565c0b
+3
View File
@@ -118,6 +118,9 @@ func (r *RTL8720DN) ConnectSSLSocket(addr, port string) error {
if r.debug {
fmt.Printf("ConnectSSLSocket(%q, %q)\r\n", addr, port)
}
if r.root_ca == nil {
return fmt.Errorf("root_ca is not set")
}
client, err := r.Rpc_wifi_ssl_client_create()
if err != nil {