File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
subsys/net/lib/wifi_credentials Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,13 +154,13 @@ int wifi_credentials_set_personal_struct(const struct wifi_credentials_personal
154
154
{
155
155
int ret ;
156
156
157
- if (creds -> header . ssid_len > WIFI_SSID_MAX_LEN || creds -> header . ssid_len == 0 ) {
158
- LOG_ERR ("Cannot set WiFi credentials, SSID has invalid format " );
157
+ if (creds == NULL ) {
158
+ LOG_ERR ("Cannot set WiFi credentials, provided struct pointer cannot be NULL " );
159
159
return - EINVAL ;
160
160
}
161
161
162
- if (creds == NULL ) {
163
- LOG_ERR ("Cannot set WiFi credentials, provided struct pointer cannot be NULL " );
162
+ if (creds -> header . ssid_len > WIFI_SSID_MAX_LEN || creds -> header . ssid_len == 0 ) {
163
+ LOG_ERR ("Cannot set WiFi credentials, SSID has invalid format " );
164
164
return - EINVAL ;
165
165
}
166
166
You can’t perform that action at this time.
0 commit comments