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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user