[beken-72xx] Fix lwip_ioctl() given wrong argument size

This commit is contained in:
Kuba Szczodrzyński
2022-06-30 16:28:29 +02:00
parent cf5dfb43d6
commit 1684d63e04
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ Wire | ❗ | ❌
**OTHER LIBRARIES** | |
Wi-Fi STA/AP/Mixed | ✔️ | ✔️/❌/❌
Wi-Fi Events | ✔️ | ❌
TCP Client (SSL) | ✔️ (✔️) | (❓)
TCP Client (SSL) | ✔️ (✔️) | ✔️ (❓)
TCP Server | ✔️ | ❓
IPv6 | ❌ | ❌
HTTP Client (SSL) | ✔️ (✔️) | ❓

View File

@@ -17,8 +17,8 @@ size_t LwIPRxBuffer::r_available() {
LT_D_WC("_sock < 0");
return 0;
}
uint16_t count = 0;
int res = lwip_ioctl(_sock, FIONREAD, &count);
int count = 0; // must be of same size as in lwip_ioctl()
int res = lwip_ioctl(_sock, FIONREAD, &count);
if (res < 0) {
LT_D_WC("lwip_ioctl()=%d, errno=%d", res, errno);
_failed = true;