mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +03:00
Stream::send() (#6979)
This commit is contained in:
@ -125,7 +125,7 @@ int CertStore::initCertStore(fs::FS &fs, const char *indexFileName, const char *
|
||||
uint8_t fileHeader[60];
|
||||
// 0..15 = filename in ASCII
|
||||
// 48...57 = length in decimal ASCII
|
||||
uint32_t length;
|
||||
int32_t length;
|
||||
if (data.read(fileHeader, sizeof(fileHeader)) != sizeof(fileHeader)) {
|
||||
break;
|
||||
}
|
||||
@ -201,7 +201,7 @@ const br_x509_trust_anchor *CertStore::findHashedTA(void *ctx, void *hashed_dn,
|
||||
free(der);
|
||||
return nullptr;
|
||||
}
|
||||
if (data.read((uint8_t *)der, ci.length) != ci.length) {
|
||||
if (data.read(der, ci.length) != (int)ci.length) {
|
||||
free(der);
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user