diff options
author | Volker Lendecke <vl@samba.org> | 2021-01-11 15:58:58 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-01-22 19:54:38 +0000 |
commit | 40e4958953c8518fa779286fd96ebf36517a5bdb (patch) | |
tree | 37244e6a87457aa11788e92bf94549b4413fc5cb /ctdb/common | |
parent | b417fd19675bb2d987abc768695c0b2feb1f637a (diff) | |
download | samba-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.c | 2 |
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"); |