summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_txp.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-09 17:46:32 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 10:45:34 +0100
commit617b459ddfabe5c2fbfc28808126999d936218fe (patch)
tree5803ed62c8266371a841ccd5edaf7a60891664ba /ssl/quic/quic_txp.c
parent51e671e204ede3a56c3e1c38d834240020800dfa (diff)
QUIC CHANNEL: Introduce concept of (non-)addressed mode
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21715)
Diffstat (limited to 'ssl/quic/quic_txp.c')
-rw-r--r--ssl/quic/quic_txp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/quic/quic_txp.c b/ssl/quic/quic_txp.c
index 51802ba7b6..97cba812e7 100644
--- a/ssl/quic/quic_txp.c
+++ b/ssl/quic/quic_txp.c
@@ -555,8 +555,8 @@ int ossl_quic_tx_packetiser_set_peer(OSSL_QUIC_TX_PACKETISER *txp,
const BIO_ADDR *peer)
{
if (peer == NULL) {
- ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
- return 0;
+ BIO_ADDR_clear(&txp->args.peer);
+ return 1;
}
txp->args.peer = *peer;