From dec168b525305ff8812bdc18eca3a858cf026c9a 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) (cherry picked from commit b28eee1c4ba7e3d170158cb018333a052b0ff8d3) --- 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 9352a75352..af30447e71 100644 --- a/src/ndisc/nm-lndp-ndisc.c +++ b/src/ndisc/nm-lndp-ndisc.c @@ -274,7 +274,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