From 9a3471825fc759742b53b38fe182a831c350a123 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 21 Jun 2023 14:25:03 +0200 Subject: [PATCH] rec: Silence Coverity 1462719 Unchecked return value from library. Call should not fail and it's a best effort anyway in this case --- pdns/recursordist/lwres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/lwres.cc b/pdns/recursordist/lwres.cc index ad9bcbb81d..f6c6fa2479 100644 --- a/pdns/recursordist/lwres.cc +++ b/pdns/recursordist/lwres.cc @@ -486,7 +486,7 @@ static LWResult::Result asyncresolve(const ComboAddress& ip, const DNSName& doma if (fstrmQEnabled || fstrmREnabled) { localip.sin4.sin_family = ip.sin4.sin_family; socklen_t slen = ip.getSocklen(); - getsockname(queryfd, reinterpret_cast(&localip), &slen); + (void)getsockname(queryfd, reinterpret_cast(&localip), &slen); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)) } if (fstrmQEnabled) { logFstreamQuery(fstrmLoggers, queryTime, localip, ip, DnstapMessage::ProtocolType::DoUDP, context ? context->d_auth : boost::none, vpacket); -- 2.47.2