Merge pull request #555 from UCIS/patch-1

Fix incorrect memory access in Sequans Monarch code
This commit is contained in:
Sara Damiano
2021-07-06 11:32:49 -04:00
committed by GitHub

View File

@@ -98,7 +98,7 @@ class TinyGsmSequansMonarch
} else {
this->mux = (mux % TINY_GSM_MUX_COUNT) + 1;
}
at->sockets[mux % TINY_GSM_MUX_COUNT] = this;
at->sockets[this->mux % TINY_GSM_MUX_COUNT] = this;
return true;
}