]> granicus.if.org Git - esp-idf/commit
Fix type conversion error in components/lwip/api/pppapi.c
authorDmitry4Bh <dmitry.kilochek@gmail.com>
Wed, 11 Oct 2017 11:02:06 +0000 (14:02 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 3 Nov 2017 08:42:56 +0000 (16:42 +0800)
commita0cedb1f442f79e1c87a37c2653226abdd293756
tree7cf20345c96dae84471efb5938049b4f11edaaf0
parent58b411a5fe5345b3f3ad1d2d4c20d909b0ffbfa1
Fix type conversion error in components/lwip/api/pppapi.c

Pointer tcpip_api_call *m  should be converted to pppapi_msg* instead of pppapi_msg_msg*
in pppapi_do_ppp_set_default(), pppapi_do_ppp_free() and so on.

It solve this issue https://github.com/espressif/esp-idf/pull/1028
so there is no need to patch ip4.c because now netif_defauilt is setted correctly.
Also it prevents memory corruption when pppapi_free() is called.
components/lwip/api/pppapi.c