summaryrefslogtreecommitdiff
path: root/net/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns.c')
-rw-r--r--net/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.c b/net/dns.c
index 7017bac75a..eee8a02f7c 100644
--- a/net/dns.c
+++ b/net/dns.c
@@ -184,7 +184,7 @@ static void dns_handler(uchar *pkt, unsigned dest, struct in_addr sip,
ip_to_string(ip_addr, ip_str);
printf("%s\n", ip_str);
if (net_dns_env_var)
- setenv(net_dns_env_var, ip_str);
+ env_set(net_dns_env_var, ip_str);
} else {
puts("server responded with invalid IP number\n");
}