diff options
author | Jelte Jansen <jelte@isc.org> | 2010-05-31 21:29:15 +0200 |
---|---|---|
committer | Jelte Jansen <jelte@isc.org> | 2010-05-31 21:29:15 +0200 |
commit | 1e7b97383969f91030eb6310f35287efa85ba5b7 (patch) | |
tree | a8689ca19d410d4a6746df063a4c1975ca82d36f /src | |
parent | applied jinmei's patches from http://bind10.isc.org/ticket/183 (with a minor ... (diff) | |
download | kea-1e7b97383969f91030eb6310f35287efa85ba5b7.tar.xz kea-1e7b97383969f91030eb6310f35287efa85ba5b7.zip |
rename HAVE_SIN_LEN macro to HAVE_SA_LEN, and use it for setting sun_len in the custom domain socket handler in lib/cc/session.cc
(removing the custom code altogether in favour of asio is under consideration)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac183@2008 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/cc/session.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/cc/session.cc b/src/lib/cc/session.cc index ee8256a649..d274f219ed 100644 --- a/src/lib/cc/session.cc +++ b/src/lib/cc/session.cc @@ -223,6 +223,9 @@ public: void SocketSession::establish(const char& socket_file) { struct sockaddr_un sun; +#ifdef HAVE_SA_LEN + sun.sun_len = sizeof(struct sockaddr_un); +#endif if (strlen(&socket_file) >= sizeof(sun.sun_path)) { isc_throw(SessionError, "Unable to connect to message queue; " |