summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-10 04:38:37 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-10 04:38:37 +0000
commit56e94017e2a3db256841e61a608bd10508a5398f (patch)
tree99b135c6502fc9deb9ac4b04bb99284eae7dd2d6 /libc
parent64bfb23ea641191b6266b637269d41b99b9597ca (diff)
Tobias Anderberg <tobias.anderberg@axis.com> noticed that
we were opening the socket() as SOCK_STREAM instead of using SOCK_DGRAM like we should have done.
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/syslog/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index c4333b9b5..531438b54 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -276,7 +276,7 @@ openlog( const char *ident, int logstat, int logfac )
(void)strncpy(SyslogAddr.sa_data, _PATH_LOG,
sizeof(SyslogAddr.sa_data));
if (LogStat & LOG_NDELAY) {
- if ((LogFile = socket(AF_UNIX, SOCK_STREAM, 0)) == -1){
+ if ((LogFile = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1){
UNLOCK;
return;
}