1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

lib: We only need the fd-passing check once

unix_dgram_send will tell us as well

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11053

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 2c675aad40e3e0bb412f9fb8558de349ad62860a)
This commit is contained in:
Volker Lendecke 2015-09-27 00:35:45 +02:00 committed by Karolin Seeger
parent b6bdeb8bf9
commit d4db166f25

View File

@ -798,12 +798,6 @@ int unix_msg_send(struct unix_msg_ctx *ctx, const struct sockaddr_un *dst,
return EINVAL;
}
#ifndef HAVE_STRUCT_MSGHDR_MSG_CONTROL
if (num_fds > 0) {
return ENOSYS;
}
#endif /* ! HAVE_STRUCT_MSGHDR_MSG_CONTROL */
if (num_fds > INT8_MAX) {
return EINVAL;
}