Parcourir la source

oops, committed wrong version of file

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac183@1940 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen il y a 15 ans
Parent
commit
2d16d72766
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      src/lib/cc/session.cc

+ 2 - 5
src/lib/cc/session.cc

@@ -231,9 +231,6 @@ SocketSession::establish(const char* socket_file) {
     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 @@ SocketSession::establish(const char* socket_file) {
         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);