23 lines
778 B
Diff
23 lines
778 B
Diff
diff -urp audit-3.0.2.orig/audisp/plugins/statsd/audisp-statsd.c audit-3.0.2/audisp/plugins/statsd/audisp-statsd.c
|
|
--- audit-3.0.2.orig/audisp/plugins/statsd/audisp-statsd.c 2021-02-12 10:13:09.000000000 -0500
|
|
+++ audit-3.0.2/audisp/plugins/statsd/audisp-statsd.c 2021-02-16 22:39:05.429139678 -0500
|
|
@@ -46,7 +46,7 @@ struct daemon_config
|
|
unsigned int port;
|
|
unsigned int interval;
|
|
int sock;
|
|
- struct sockaddr addr;
|
|
+ struct sockaddr_storage addr;
|
|
socklen_t addrlen;
|
|
};
|
|
|
|
@@ -287,7 +287,8 @@ static void send_statsd(void)
|
|
r.events_anomaly_count, r.events_response_count);
|
|
|
|
if (len > 0 && len < (int)sizeof(message))
|
|
- sendto(d.sock, message, len, 0, &d.addr, d.addrlen);
|
|
+ sendto(d.sock, message, len, 0, (struct sockaddr *)&d.addr,
|
|
+ d.addrlen);
|
|
}
|
|
|
|
|