Ternary operator has lower priority than OR.

Found by:	PVS-Studio
This commit is contained in:
Gleb Smirnoff 2016-02-17 21:17:14 +00:00
parent ec911df8da
commit c619ab95b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295720

View File

@ -1316,7 +1316,7 @@ in6_purgeaddr(struct ifaddr *ifa)
plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL); /* XXX */
if ((ia->ia_flags & IFA_ROUTE) && plen == 128) {
error = rtinit(&(ia->ia_ifa), RTM_DELETE, ia->ia_flags |
(ia->ia_dstaddr.sin6_family == AF_INET6) ? RTF_HOST : 0);
(ia->ia_dstaddr.sin6_family == AF_INET6 ? RTF_HOST : 0));
if (error != 0)
log(LOG_INFO, "%s: err=%d, destination address delete "
"failed\n", __func__, error);