lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Calling dhcp_release before dhcp_start dereferences NULL


From: Mason
Subject: [lwip-devel] Calling dhcp_release before dhcp_start dereferences NULL
Date: Tue, 12 Jun 2012 16:00:42 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1

Hello,

I suppose this should be considered a programming error, but
I'm not sure it should bring the system down.

Calling dhcp_release when dhcp_start has never been called
causes a NULL dereference (because the dhcp struct has never
been allocated).

dhcp_release calls dhcp_set_state(dhcp, DHCP_OFF);
dhcp_state( ) reads dhcp->state.
If dhcp is NULL : bam.

-- 
Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]