Browse Source

Close UDP connection when DHCP completes.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
60a3f77711
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/net/udp/dhcp.c

+ 3
- 0
src/net/udp/dhcp.c View File

@@ -506,6 +506,9 @@ static void dhcp_done ( struct dhcp_session *dhcp, int rc ) {
506 506
 		}
507 507
 	}
508 508
 
509
+	/* Close UDP connection */
510
+	udp_close ( &dhcp->udp );
511
+
509 512
 	/* Mark async operation as complete */
510 513
 	async_done ( &dhcp->aop, rc );
511 514
 }

Loading…
Cancel
Save