[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] [bug #36561] Some netifapi functions handle pointers to
From: |
Mason |
Subject: |
Re: [lwip-devel] [bug #36561] Some netifapi functions handle pointers to stale objects |
Date: |
Wed, 30 May 2012 16:47:39 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1 |
Simon Goldschmidt wrote:
> That's no bug, because:
>
> - TCPIP_NETIFAPI() (as called by netifapi_netif_add()) waits for
> tcpip_callback() to return, so when netif_add() is called, the address is
> still valid.
>
> - both netif_add() and netif_set_addr() copy the address into ip_addr_t
> members of struct netif, so the original pointers are not referenced after the
> function returns.
Doh! Sorry for the noise :-(
--
Regards.