From b28eee1c4ba7e3d170158cb018333a052b0ff8d3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 25 Mar 2020 11:16:11 +0100 Subject: [PATCH] rdisc: fix parsing ndp_msg_opt_dnssl_lifetime() from IPv6 RA Fixes: c3a4656a68f9 ('rdisc: libndp implementation') (cherry picked from commit d1181533b8aaaa6918bcf3592fc4de62d20acaa5) --- src/ndisc/nm-lndp-ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ndisc/nm-lndp-ndisc.c b/src/ndisc/nm-lndp-ndisc.c index 6f2815ef42..2ef27238fe 100644 --- a/src/ndisc/nm-lndp-ndisc.c +++ b/src/ndisc/nm-lndp-ndisc.c @@ -260,7 +260,7 @@ receive_ra (struct ndp *ndp, struct ndp_msg *msg, gpointer user_data) NMNDiscDNSDomain dns_domain = { .domain = domain, .timestamp = now, - .lifetime = ndp_msg_opt_rdnss_lifetime (msg, offset), + .lifetime = ndp_msg_opt_dnssl_lifetime (msg, offset), }; /* Pad the lifetime somewhat to give a bit of slack in cases