2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#3245] Fixed unused variable warning

src/lib/dhcp/pkt_filter_inet6.cc
    PktFilterInet6::openSocket() - added errmsg to exception text as originally intended
This commit is contained in:
Thomas Markwalder
2024-02-20 15:47:33 -05:00
parent 03454345e6
commit 63bdeab6d2

View File

@@ -103,7 +103,8 @@ PktFilterInet6::openSocket(const Iface& iface,
int enable = 1;
if (setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &enable, sizeof(enable))) {
const char* errmsg = strerror(errno);
isc_throw(SocketConfigError, "Can't set SO_TIMESTAMP for " << addr.toText());
isc_throw(SocketConfigError, "Could not enable SO_TIMESTAMP for " << addr.toText()
<< ", error: " << errmsg);
}
#endif