summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ppp/ipcp_opt_dns.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_dns.c b/accel-pppd/ppp/ipcp_opt_dns.c
index 56160fe0..dec96e31 100644
--- a/accel-pppd/ppp/ipcp_opt_dns.c
+++ b/accel-pppd/ppp/ipcp_opt_dns.c
@@ -102,10 +102,8 @@ static int dns_recv_conf_req(struct ppp_ipcp_t *ipcp, struct ipcp_option_t *opt,
if (opt32->hdr.len != 6)
return IPCP_OPT_REJ;
- if (!dns_opt->addr) {
- dns_opt->addr = opt32->val;
- return IPCP_OPT_ACK;
- }
+ if (!dns_opt->addr)
+ return IPCP_OPT_REJ;
if (dns_opt->addr == opt32->val)
return IPCP_OPT_ACK;