Skip to content

Commit 1292cf3

Browse files
author
Hamza Rizwan
committed
Added additional check for EAP-TLS missing parameters
1 parent cecde0e commit 1292cf3

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ nsapi_error_t OdinWiFiInterface::connect(
384384
return NSAPI_ERROR_PARAMETER;
385385
}
386386

387-
if((security == NSAPI_SECURITY_EAP_TLS) && (cert_handle->client_cert == NULL)) {
387+
if((security == NSAPI_SECURITY_EAP_TLS) && (cert_handle->client_cert == NULL || cert_handle->client_prvt_key == NULL)) {
388388
return NSAPI_ERROR_PARAMETER;
389389
}
390390

0 commit comments

Comments
 (0)