summaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r--networking/udhcp/files.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 043a95bb0..e0e8b12c3 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -26,13 +26,11 @@ static int read_ip(const char *line, void *arg)
26 26
27static int read_mac(const char *line, void *arg) 27static int read_mac(const char *line, void *arg)
28{ 28{
29 uint8_t *mac_bytes = arg;
30 struct ether_addr *temp_ether_addr; 29 struct ether_addr *temp_ether_addr;
31 30
32 temp_ether_addr = ether_aton(line); 31 temp_ether_addr = ether_aton_r(line, (struct ether_addr *)arg);
33 if (temp_ether_addr == NULL) 32 if (temp_ether_addr == NULL)
34 return 0; 33 return 0;
35 memcpy(mac_bytes, temp_ether_addr, 6);
36 return 1; 34 return 1;
37} 35}
38 36