2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

[4326] Fixed Coverity CID 1232271

This commit is contained in:
Francis Dupont
2016-03-14 18:54:23 +01:00
parent 9414ace0e0
commit f5ce3da3b8

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC") // Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
// //
// This Source Code Form is subject to the terms of the Mozilla Public // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -474,7 +474,7 @@ ForwardTest::checkPushAndPop(int family, int type, int protocol,
false)); false));
setNonBlock(client_sock.fd, true); setNonBlock(client_sock.fd, true);
// This connect would "fail" due to EINPROGRESS. Ignore it for now. // This connect would "fail" due to EINPROGRESS. Ignore it for now.
connect(client_sock.fd, local.first, local.second); static_cast<void>(connect(client_sock.fd, local.first, local.second));
sockaddr_storage ss; sockaddr_storage ss;
socklen_t salen = sizeof(ss); socklen_t salen = sizeof(ss);
server_sock.reset(accept(sock.fd, convertSockAddr(&ss), &salen)); server_sock.reset(accept(sock.fd, convertSockAddr(&ss), &salen));