Skip to content

Commit 6218c40

Browse files
d-a-vdevyte
authored andcommitted
fix md5 comparison (#5265)
1 parent 561426c commit 6218c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/Updater.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ bool UpdaterClass::end(bool evenIfRemaining){
175175

176176
_md5.calculate();
177177
if(_target_md5.length()) {
178-
if(_target_md5 != _md5.toString()){
178+
if(strcasecmp(_target_md5.c_str(), _md5.toString().c_str()) != 0){
179179
_setError(UPDATE_ERROR_MD5);
180180
_reset();
181181
return false;

0 commit comments

Comments
 (0)