Drop invalid records with DTLS
diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh
index c7758b8..f375b1b 100755
--- a/tests/ssl-opt.sh
+++ b/tests/ssl-opt.sh
@@ -2104,6 +2104,7 @@
"$P_SRV dtls=1" \
"$P_CLI dtls=1" \
0 \
+ -s "Extra-header:" \
-c "HTTP/1.0 200 OK"
run_test "DTLS proxy: some duplication" \
@@ -2111,6 +2112,7 @@
"$P_SRV dtls=1" \
"$P_CLI dtls=1" \
0 \
+ -s "Extra-header:" \
-c "HTTP/1.0 200 OK"
run_test "DTLS proxy: lots of duplication" \
@@ -2118,6 +2120,15 @@
"$P_SRV dtls=1" \
"$P_CLI dtls=1" \
0 \
+ -s "Extra-header:" \
+ -c "HTTP/1.0 200 OK"
+
+run_test "DTLS proxy: inject invalid AD record" \
+ -p "$P_PXY bad_ad=1" \
+ "$P_SRV dtls=1" \
+ "$P_CLI dtls=1" \
+ 0 \
+ -s "Extra-header:" \
-c "HTTP/1.0 200 OK"
# Final report