diff options
author | Michael Biebl <biebl@debian.org> | 2011-02-25 17:07:07 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-02-25 17:07:07 +0100 |
commit | 4f45cc34384973b3643148c21a5ede489ab05f86 (patch) | |
tree | 3ef7ec9f373a99ef2c7f0bbbfd017fb2abacde43 /plugins/imuxsock | |
parent | 0116bd2a5f70ce1065933c47903a3bb4cd4fe9e0 (diff) | |
download | rsyslog-4f45cc34384973b3643148c21a5ede489ab05f86.tar.gz |
Imported Upstream version 5.7.6upstream/5.7.6
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index ff38852..7ee413e 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -606,7 +606,9 @@ static rsRetVal readSocket(lstn_t *pLstn) int iMaxLine; struct msghdr msgh; struct iovec msgiov; +# if HAVE_SCM_CREDENTIALS struct cmsghdr *cm; +# endif struct ucred *cred; uchar bufRcv[4096+1]; char aux[128]; @@ -630,11 +632,13 @@ static rsRetVal readSocket(lstn_t *pLstn) memset(&msgh, 0, sizeof(msgh)); memset(&msgiov, 0, sizeof(msgiov)); +# if HAVE_SCM_CREDENTIALS if(pLstn->bUseCreds) { memset(&aux, 0, sizeof(aux)); msgh.msg_control = aux; msgh.msg_controllen = sizeof(aux); } +# endif msgiov.iov_base = pRcv; msgiov.iov_len = iMaxLine; msgh.msg_iov = &msgiov; |