summaryrefslogtreecommitdiff
path: root/ctdb/common
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-01-11 15:58:58 +0100
committerJeremy Allison <jra@samba.org>2021-01-22 19:54:38 +0000
commit40e4958953c8518fa779286fd96ebf36517a5bdb (patch)
tree37244e6a87457aa11788e92bf94549b4413fc5cb /ctdb/common
parentb417fd19675bb2d987abc768695c0b2feb1f637a (diff)
downloadsamba-40e4958953c8518fa779286fd96ebf36517a5bdb.tar.gz
lib: Make accept_recv() return struct samba_sockaddr
Avoid casting problems by using the samba_sockaddr union Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'ctdb/common')
-rw-r--r--ctdb/common/sock_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/sock_daemon.c b/ctdb/common/sock_daemon.c
index 6298653f4ec..7d026515d68 100644
--- a/ctdb/common/sock_daemon.c
+++ b/ctdb/common/sock_daemon.c
@@ -371,7 +371,7 @@ static void sock_socket_start_new_client(struct tevent_req *subreq)
struct sock_client *client;
int client_fd, ret;
- client_fd = accept_recv(subreq, NULL, NULL, &ret);
+ client_fd = accept_recv(subreq, NULL, &ret);
TALLOC_FREE(subreq);
if (client_fd == -1) {
D_ERR("failed to accept new connection\n");