From: Michael Brown Date: Wed, 20 Dec 2006 07:19:48 +0000 (+0000) Subject: Close UDP connection when DHCP completes. X-Git-Tag: v0.9.3~856 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a3f77711215a6aa993facfdb9ee535ca36b2ab;p=thirdparty%2Fipxe.git Close UDP connection when DHCP completes. --- diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 08e4ad95e..f81077770 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 ); }