BIND 10 master, updated. 74f6389f9e55e908c5dc67653e658ff8d75c5cf6 [master] Fix Valgrind report about mismatched new/delete
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Aug 23 07:27:37 UTC 2012
The branch, master has been updated
via 74f6389f9e55e908c5dc67653e658ff8d75c5cf6 (commit)
via 8a33926d267c2d96b968136f8ae14e6e15cb00d2 (commit)
from 802589cc9ba0d647b7cb80b84f951f7f3cc6615a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 74f6389f9e55e908c5dc67653e658ff8d75c5cf6
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Aug 23 09:42:28 2012 +0530
[master] Fix Valgrind report about mismatched new/delete
commit 8a33926d267c2d96b968136f8ae14e6e15cb00d2
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu Aug 23 09:38:15 2012 +0530
[master] Print buffer size passed to setsockopt()
This will be useful in debugging the OpenBSD setsockopt() failures.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/iface_mgr_linux.cc | 2 +-
src/lib/util/io/socketsession.cc | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/iface_mgr_linux.cc b/src/lib/dhcp/iface_mgr_linux.cc
index 90431de..3c62d72 100644
--- a/src/lib/dhcp/iface_mgr_linux.cc
+++ b/src/lib/dhcp/iface_mgr_linux.cc
@@ -400,7 +400,7 @@ void Netlink::rtnl_process_reply(NetlinkMessages& info) {
void Netlink::release_list(NetlinkMessages& messages) {
// let's free local copies of stored messages
for (NetlinkMessages::iterator msg = messages.begin(); msg != messages.end(); ++msg) {
- delete (*msg);
+ delete[] (*msg);
}
// ang get rid of the message pointers as well
diff --git a/src/lib/util/io/socketsession.cc b/src/lib/util/io/socketsession.cc
index 4c50949..ba4e6c7 100644
--- a/src/lib/util/io/socketsession.cc
+++ b/src/lib/util/io/socketsession.cc
@@ -163,7 +163,9 @@ SocketSessionForwarder::connectToReceiver() {
if (setsockopt(impl_->fd_, SOL_SOCKET, SO_SNDBUF, &SOCKSESSION_BUFSIZE,
sizeof(SOCKSESSION_BUFSIZE)) == -1) {
close();
- isc_throw(SocketSessionError, "Failed to set send buffer size");
+ isc_throw(SocketSessionError,
+ "Failed to set send buffer size to " <<
+ SOCKSESSION_BUFSIZE);
}
}
if (connect(impl_->fd_, convertSockAddr(&impl_->sock_un_),
@@ -286,7 +288,8 @@ struct SocketSessionReceiver::ReceiverImpl {
if (setsockopt(fd_, SOL_SOCKET, SO_RCVBUF, &SOCKSESSION_BUFSIZE,
sizeof(SOCKSESSION_BUFSIZE)) == -1) {
isc_throw(SocketSessionError,
- "Failed to set receive buffer size");
+ "Failed to set receive buffer size to " <<
+ SOCKSESSION_BUFSIZE);
}
}
More information about the bind10-changes
mailing list