From 28c58763220ea6182a611f3e2236b0b1d7f36032 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 7 Jun 2025 10:23:21 +0000 Subject: Fix weird calloc() argument order ok jsg --- src/lib/libssl/ssl_tlsext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/libssl') diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index 57efb75d32..9209597601 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_tlsext.c,v 1.155 2025/04/30 13:50:50 tb Exp $ */ +/* $OpenBSD: ssl_tlsext.c,v 1.156 2025/06/07 10:23:21 tb Exp $ */ /* * Copyright (c) 2016, 2017, 2019 Joel Sing * Copyright (c) 2017 Doug Hogan @@ -2414,8 +2414,8 @@ tlsext_randomize_build_order(SSL *s) free(s->tlsext_build_order); s->tlsext_build_order_len = 0; - if ((s->tlsext_build_order = calloc(sizeof(*s->tlsext_build_order), - N_TLS_EXTENSIONS)) == NULL) + if ((s->tlsext_build_order = calloc(N_TLS_EXTENSIONS, + sizeof(*s->tlsext_build_order))) == NULL) return 0; s->tlsext_build_order_len = N_TLS_EXTENSIONS; @@ -2443,8 +2443,8 @@ tlsext_linearize_build_order(SSL *s) free(s->tlsext_build_order); s->tlsext_build_order_len = 0; - if ((s->tlsext_build_order = calloc(sizeof(*s->tlsext_build_order), - N_TLS_EXTENSIONS)) == NULL) + if ((s->tlsext_build_order = calloc(N_TLS_EXTENSIONS, + sizeof(*s->tlsext_build_order))) == NULL) return 0; s->tlsext_build_order_len = N_TLS_EXTENSIONS; -- cgit v1.2.3-55-g6feb