diff options
author | Susant Sahani <susant@redhat.com> | 2014-11-11 13:36:32 +0530 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-11-17 10:58:55 +0100 |
commit | 0c9eefb7e3a39db832313b8411a4dcb9fdfe3607 (patch) | |
tree | 843dd0021d8c20c37d3f41c582d81bfc1e2f95d6 /src | |
parent | 9593d9d9d505d38b1b0fb3d492268d513f228b88 (diff) |
resolve: fix CID#1237549 Unchecked return value
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 1664b1328e..fd4f5f7e33 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -386,7 +386,7 @@ int dns_scope_llmnr_membership(DnsScope *s, bool b) { * one. This is necessary on some devices, such as * veth. */ if (b) - setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreqn, sizeof(mreqn)); + (void)setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreqn, sizeof(mreqn)); if (setsockopt(fd, IPPROTO_IP, b ? IP_ADD_MEMBERSHIP : IP_DROP_MEMBERSHIP, &mreqn, sizeof(mreqn)) < 0) return -errno; @@ -402,7 +402,7 @@ int dns_scope_llmnr_membership(DnsScope *s, bool b) { return fd; if (b) - setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); + (void)setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); if (setsockopt(fd, IPPROTO_IPV6, b ? IPV6_ADD_MEMBERSHIP : IPV6_DROP_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) return -errno; |