mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
logging: properly cast sockaddr_in to sockaddr for sendto() in ctdb_syslog_log()
(This used to be ctdb commit 7420d9991e30575219c919ce2a8edce20ad3eb63)
This commit is contained in:
parent
93016108bd
commit
e931453a22
@ -247,7 +247,9 @@ static void ctdb_syslog_log(const char *format, va_list ap)
|
||||
syslog_sin.sin_port = htons(CTDB_PORT);
|
||||
syslog_sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||
|
||||
ret = sendto(syslog_fd, msg, len, 0, &syslog_sin, sizeof(syslog_sin));
|
||||
ret = sendto(syslog_fd, msg, len, 0,
|
||||
(struct sockaddr *)&syslog_sin,
|
||||
sizeof(syslog_sin));
|
||||
/* no point in checking here since we cant log an error */
|
||||
|
||||
close(syslog_fd);
|
||||
|
Loading…
Reference in New Issue
Block a user