mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
fix md5 comparison (#5265)
This commit is contained in:
parent
561426c0c7
commit
6218c40740
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user