mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-22 08:22:04 +03:00
fix md5 comparison (#5265)
This commit is contained in:
@ -175,7 +175,7 @@ bool UpdaterClass::end(bool evenIfRemaining){
|
||||
|
||||
_md5.calculate();
|
||||
if(_target_md5.length()) {
|
||||
if(_target_md5 != _md5.toString()){
|
||||
if(strcasecmp(_target_md5.c_str(), _md5.toString().c_str()) != 0){
|
||||
_setError(UPDATE_ERROR_MD5);
|
||||
_reset();
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user