summaryrefslogtreecommitdiffstats
path: root/plugins/imtcp
diff options
context:
space:
mode:
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2012-09-12 12:44:51 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-12 12:44:51 +0200
commitd1de4cbd92a55c6b930fd84ee9fa5bbfee16aed6 (patch)
tree615a8b91f331f04360418bdde29888599c8e6d14 /plugins/imtcp
parenta53c2bca49ba0bb49719ebe570854d06ea7e1ca2 (diff)
downloadrsyslog-d1de4cbd92a55c6b930fd84ee9fa5bbfee16aed6.tar.gz
rsyslog-d1de4cbd92a55c6b930fd84ee9fa5bbfee16aed6.tar.bz2
rsyslog-d1de4cbd92a55c6b930fd84ee9fa5bbfee16aed6.zip
imuxsock: remove incorrect socket option call
SCM_CREDENTIALS is not a socket option; its value is usually 0x2 which on most archs corresponds to socket option SO_REUSEADDR, but on mips-arch there is no socket option with value 0x2 and SO_REUSEADDR = 0x4, so the call will fail with ENOPROTOOPT 'Protocol not available'; skip it. There does not seem any other special setsockopt call is needed anyway, besides the above. In addition Jonny Törnbom commented: SCM_CREDENTIALS is a control message type, not a socket option, so using setsockopt(...SCM_CREDENTIALS...) is potentially dangerous and wrong and should be deleted from the code. (SCM_CREDENTIALS is used in conjuction with SO_PASSCRED which is the socket option to use.)
Diffstat (limited to 'plugins/imtcp')
0 files changed, 0 insertions, 0 deletions