From 60a3f77711215a6aa993facfdb9ee535ca36b2ab Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 20 Dec 2006 07:19:48 +0000 Subject: [PATCH] Close UDP connection when DHCP completes. --- src/net/udp/dhcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 08e4ad95..f8107777 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -506,6 +506,9 @@ static void dhcp_done ( struct dhcp_session *dhcp, int rc ) { } } + /* Close UDP connection */ + udp_close ( &dhcp->udp ); + /* Mark async operation as complete */ async_done ( &dhcp->aop, rc ); }