diff options
Diffstat (limited to 'pkg/nsd/patch/0004-Avoid-unnecessary-VLA.patch')
| -rw-r--r-- | pkg/nsd/patch/0004-Avoid-unnecessary-VLA.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/pkg/nsd/patch/0004-Avoid-unnecessary-VLA.patch b/pkg/nsd/patch/0004-Avoid-unnecessary-VLA.patch deleted file mode 100644 index 9be7c002..00000000 --- a/pkg/nsd/patch/0004-Avoid-unnecessary-VLA.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 3dbfc38645c53c2bf9b5f54635a2fa65ddaeab88 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sun, 16 Jun 2019 23:37:11 -0700 -Subject: [PATCH] Avoid unnecessary VLA -Upstream: https://github.com/NLnetLabs/nsd/pull/60 - ---- - xfrd-tcp.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/xfrd-tcp.c b/xfrd-tcp.c -index 1ae5311c..d00c13b7 100644 ---- a/xfrd-tcp.c -+++ b/xfrd-tcp.c -@@ -215,8 +215,8 @@ pipeline_find(struct xfrd_tcp_set* set, xfrd_zone_type* zone) - /* smaller buf than a full pipeline with 64kb ID array, only need - * the front part with the key info, this front part contains the - * members that the compare function uses. */ -- const size_t keysize = sizeof(struct xfrd_tcp_pipeline) - -- ID_PIPE_NUM*(sizeof(struct xfrd_zone*) + sizeof(uint16_t)); -+ enum { keysize = sizeof(struct xfrd_tcp_pipeline) - -+ ID_PIPE_NUM*(sizeof(struct xfrd_zone*) + sizeof(uint16_t)) }; - /* void* type for alignment of the struct, - * divide the keysize by ptr-size and then add one to round up */ - void* buf[ (keysize / sizeof(void*)) + 1 ]; --- -2.25.0 - |
