Skip to content

Commit d25db7f

Browse files
committed
ssl_client: fix unsigned comparison
1 parent 92a8022 commit d25db7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SSLClient/src/ssl_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
226226
}
227227
unsigned char psk[MBEDTLS_PSK_MAX_LEN];
228228
size_t psk_len = strlen(psKey)/2;
229-
for (int j=0; j<strlen(psKey); j+= 2) {
229+
for (size_t j=0; j<strlen(psKey); j+= 2) {
230230
char c = psKey[j];
231231
if (c >= '0' && c <= '9') c -= '0';
232232
else if (c >= 'A' && c <= 'F') c -= 'A' - 10;

0 commit comments

Comments
 (0)