Browse Source

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.

Eric Andersen 22 years ago
parent
commit
56e94017e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/misc/syslog/syslog.c

+ 1 - 1
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;
 			}