aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-12-09 14:08:33 +1100
committerDean Camera <dean@fourwalledcubicle.com>2018-12-09 14:08:35 +1100
commit2b63686ff0ba92c56f1c03c75daa9fa86ec56681 (patch)
treea8d0b362b619bf0dbd1a64244b0164fe978cb8af
parenteec7bb2476649ad329164454afd874bd079d3f57 (diff)
downloadlufa-2b63686ff0ba92c56f1c03c75daa9fa86ec56681.tar.gz
lufa-2b63686ff0ba92c56f1c03c75daa9fa86ec56681.tar.bz2
lufa-2b63686ff0ba92c56f1c03c75daa9fa86ec56681.zip
Fix invalid DHCP server socket creation in the Webserver project.
-rw-r--r--LUFA/DoxygenPages/ChangeLog.txt1
-rw-r--r--Projects/Webserver/Lib/DHCPServerApp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt
index ebb815055..4f2ae7732 100644
--- a/LUFA/DoxygenPages/ChangeLog.txt
+++ b/LUFA/DoxygenPages/ChangeLog.txt
@@ -37,6 +37,7 @@
* - Fixed bootloaders accepting flash writes to the bootloader region (thanks to NicoHood)
* - Fixed bootloaders incorrectly checking the BOOTRST fuse on start (thanks to Braden Kell)
* - Fixed void pointer arithmetic in the low level RNDIS demo protocol decoders
+ * - Fixed invalid DHCP server socket creation in the Webserver project
*
* \section Sec_ChangeLog170418 Version 170418
* <b>New:</b>
diff --git a/Projects/Webserver/Lib/DHCPServerApp.c b/Projects/Webserver/Lib/DHCPServerApp.c
index 22bd6ac01..49bbde4d3 100644
--- a/Projects/Webserver/Lib/DHCPServerApp.c
+++ b/Projects/Webserver/Lib/DHCPServerApp.c
@@ -50,7 +50,7 @@ void DHCPServerApp_Init(void)
uip_listen(HTONS(DHCP_SERVER_PORT));
/* Create a new UDP connection to the DHCP server port for the DHCP solicitation */
- struct uip_udp_conn* BroadcastConnection = uip_udp_new(&uip_broadcast_addr, HTONS(DHCP_CLIENT_PORT));
+ BroadcastConnection = uip_udp_new(&uip_broadcast_addr, HTONS(DHCP_CLIENT_PORT));
/* If the connection was successfully created, bind it to the local DHCP client port */
if (BroadcastConnection != NULL)