summaryrefslogtreecommitdiffstats
path: root/src/libknot/xdp/protocols.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:02:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 08:02:46 +0000
commite4e8d437fe47a4d97ab469fc9116e50ab1601c54 (patch)
treed573aafc30201b68be84aba1a44a8f5f2fc30d4e /src/libknot/xdp/protocols.h
parentAdding debian version 3.3.4-1.1. (diff)
downloadknot-e4e8d437fe47a4d97ab469fc9116e50ab1601c54.tar.xz
knot-e4e8d437fe47a4d97ab469fc9116e50ab1601c54.zip
Merging upstream version 3.3.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/libknot/xdp/protocols.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libknot/xdp/protocols.h b/src/libknot/xdp/protocols.h
index 1a18601..ee26e97 100644
--- a/src/libknot/xdp/protocols.h
+++ b/src/libknot/xdp/protocols.h
@@ -90,7 +90,7 @@ inline static void *prot_read_tcp(void *data, knot_xdp_msg_t *msg, uint16_t *src
continue;
}
- if (opts + 1 > hdr_end || opts + opts[1] > hdr_end) {
+ if (opts + 1 > hdr_end || opts + opts[1] > hdr_end || opts[1] < 2) {
// Malformed option.
break;
}