summaryrefslogtreecommitdiffstats
path: root/test/quic_multistream_test.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-07-03 13:15:12 +0100
committerPauli <pauli@openssl.org>2023-07-17 08:18:05 +1000
commit96b7df60b3e54641c6046fea31c7a5cb535c2eeb (patch)
treeae5627bb8fc84e2291acb5c08c083d98b46cc9ab /test/quic_multistream_test.c
parent70cafc4479e7faf005068580d0354d5ab1c8c0d4 (diff)
Minor updates
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21135)
Diffstat (limited to 'test/quic_multistream_test.c')
-rw-r--r--test/quic_multistream_test.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 7d35f80ce1..ad6c0c9e64 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2217,7 +2217,10 @@ static int script_21_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}
@@ -2296,7 +2299,10 @@ static int script_23_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}
@@ -2346,7 +2352,10 @@ static int script_24_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}
@@ -2457,7 +2466,10 @@ static int script_28_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}
@@ -2608,7 +2620,10 @@ static int script_32_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}
@@ -2788,7 +2803,10 @@ static int script_39_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
ok = 1;
err:
- WPACKET_finish(&wpkt);
+ if (ok)
+ WPACKET_finish(&wpkt);
+ else
+ WPACKET_cleanup(&wpkt);
return ok;
}