diff options
author | 2019-09-03 10:39:08 +0000 | |
---|---|---|
committer | 2019-09-03 10:39:08 +0000 | |
commit | 1b0afb179afb85268497272761203174e79df50a (patch) | |
tree | bee1e0d087e1ec5f803c265f5d18ee91a9b344d5 | |
parent | Use 0 as exit value if no error has been found in the CTF section. (diff) | |
download | wireguard-openbsd-1b0afb179afb85268497272761203174e79df50a.tar.xz wireguard-openbsd-1b0afb179afb85268497272761203174e79df50a.zip |
correct INET6 path in mpls_getttl() and avoid uninitialised variable
ok dlg@
-rw-r--r-- | sys/netmpls/mpls_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_output.c b/sys/netmpls/mpls_output.c index 62f05b96ad8..44c48eaefaa 100644 --- a/sys/netmpls/mpls_output.c +++ b/sys/netmpls/mpls_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_output.c,v 1.27 2019/08/27 00:49:48 dlg Exp $ */ +/* $OpenBSD: mpls_output.c,v 1.28 2019/09/03 10:39:08 jsg Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -180,7 +180,7 @@ mpls_getttl(struct mbuf *m, sa_family_t af) #ifdef INET6 case 6: if (!mpls_mapttl_ip6) - break; + return (ttl); loc = offsetof(struct ip6_hdr, ip6_hlim); break; |