summaryrefslogtreecommitdiff
path: root/net/samba411/files/patch-source3_lib_messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba411/files/patch-source3_lib_messages.c')
-rw-r--r--net/samba411/files/patch-source3_lib_messages.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/net/samba411/files/patch-source3_lib_messages.c b/net/samba411/files/patch-source3_lib_messages.c
deleted file mode 100644
index 8b45d464f07f..000000000000
--- a/net/samba411/files/patch-source3_lib_messages.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- source3/lib/messages.c.orig 2020-01-08 10:24:52 UTC
-+++ source3/lib/messages.c
-@@ -158,7 +158,7 @@ struct messaging_rec *messaging_rec_create(
-
- {
- struct messaging_rec rec;
-- int64_t fds64[num_fds];
-+ int64_t fds64[MAX(1, num_fds)];
- size_t i;
-
- for (i=0; i<num_fds; i++) {
-@@ -392,7 +392,7 @@ static void messaging_recv_cb(struct tevent_context *e
- private_data, struct messaging_context);
- struct server_id_buf idbuf;
- struct messaging_rec rec;
-- int64_t fds64[MIN(num_fds, INT8_MAX)];
-+ int64_t fds64[MAX(1, MIN(num_fds, INT8_MAX))];
- size_t i;
-
- if (msg_len < MESSAGE_HDR_LENGTH) {
-@@ -1348,7 +1348,7 @@ static void messaging_dispatch_rec(struct messaging_co
-
- if (ev != msg_ctx->event_ctx) {
- struct iovec iov;
-- int fds[rec->num_fds];
-+ int fds[MAX(1, rec->num_fds)];
- int ret;
-
- /*