From eca6a49e2d91c21ff9f525dd34259e3ad6c12272 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 4 Mar 2014 21:44:07 +0100 Subject: [PATCH] platform: fix converting address flags in nm_platform_ip6_address_to_string() Signed-off-by: Thomas Haller --- src/platform/nm-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 364447d5b5..1b2125ae5c 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -1920,11 +1920,11 @@ nm_platform_ip6_address_to_string (const NMPlatformIP6Address *address) * These two flags were introduced together with the extended ifa_flags, * so, check for that. **/ - if ((address->flags && IFA_F_MANAGETEMPADDR) & !nm_platform_check_support_libnl_extended_ifa_flags ()) { + if ((address->flags & IFA_F_MANAGETEMPADDR) && !nm_platform_check_support_libnl_extended_ifa_flags ()) { strncat (s_flags, s_flags[0] ? "," IFA_F_MANAGETEMPADDR_STR : IFA_F_MANAGETEMPADDR_STR, sizeof (s_flags) - strlen (s_flags) - 1); } - if ((address->flags && IFA_F_NOPREFIXROUTE) & !nm_platform_check_support_libnl_extended_ifa_flags ()) { + if ((address->flags & IFA_F_NOPREFIXROUTE) && !nm_platform_check_support_libnl_extended_ifa_flags ()) { strncat (s_flags, s_flags[0] ? "," IFA_F_NOPREFIXROUTE_STR : IFA_F_NOPREFIXROUTE_STR, sizeof (s_flags) - strlen (s_flags) - 1); }