Close UDP connection when DHCP completes.
authorMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 07:19:48 +0000 (07:19 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 07:19:48 +0000 (07:19 +0000)
src/net/udp/dhcp.c

index 08e4ad9..f810777 100644 (file)
@@ -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 );
 }