[svn] commit: r1940 - /branches/trac183/src/lib/cc/session.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed May 26 18:49:56 UTC 2010
Author: jelte
Date: Wed May 26 18:49:56 2010
New Revision: 1940
Log:
oops, committed wrong version of file
Modified:
branches/trac183/src/lib/cc/session.cc
Modified: branches/trac183/src/lib/cc/session.cc
==============================================================================
--- branches/trac183/src/lib/cc/session.cc (original)
+++ branches/trac183/src/lib/cc/session.cc Wed May 26 18:49:56 2010
@@ -231,9 +231,6 @@
int s;
struct sockaddr_un sun;
-#ifdef HAVE_SUN_LEN
- sun.sun_len = sizeof(struct sockaddr_un);
-#endif
s = socket(AF_UNIX, SOCK_STREAM, IPPROTO_TCP);
if (s < 0) {
isc_throw(SessionError, "socket() failed");
@@ -246,10 +243,10 @@
socket_file = BIND10_MSGQ_SOCKET_FILE;
}
-/* if (strlen(socket_file) >= sizeof(sun.sun_path)) {
+ if (strlen(socket_file) >= sizeof(sun.sun_path)) {
isc_throw(SessionError, "Unable to connect to message queue; socket file path too long");
}
-*/
+
sun.sun_family = AF_UNIX;
strncpy(sun.sun_path, socket_file, sizeof(sun.sun_path) - 1);
More information about the bind10-changes
mailing list