kopia lustrzana https://github.com/martin-ger/esp_mqtt
handle of empty passwords issue #15
rodzic
e3b494b70f
commit
15945718fb
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -1,2 +1,2 @@
|
|||
c50dd78b2343c1a3c899a54d55fca90b9d13ea84 0x00000.bin
|
||||
f72c7c5d01d946b3639edfb50e4539706fd45b4d 0x10000.bin
|
||||
2e1def6f5b226e294097069debab364588066cf6 0x00000.bin
|
||||
d58a90297c78ac2106abb8ea7f0864927b75727a 0x10000.bin
|
||||
|
|
|
@ -529,7 +529,6 @@ static void ICACHE_FLASH_ATTR MQTT_ClientCon_recv_cb(void *arg, char *pdata, uns
|
|||
const char *password =
|
||||
mqtt_get_str(&clientcon->mqtt_state.in_buffer[2 + msg_used_len], &password_len);
|
||||
|
||||
if (password != NULL)
|
||||
clientcon->connect_info.password = (char *)os_zalloc(password_len+1);
|
||||
if (clientcon->connect_info.password != NULL) {
|
||||
os_memcpy(clientcon->connect_info.password, password, password_len);
|
||||
|
|
Ładowanie…
Reference in New Issue