summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-06-07 10:23:21 +0000
committertb <>2025-06-07 10:23:21 +0000
commit28c58763220ea6182a611f3e2236b0b1d7f36032 (patch)
treeb552fed88f74b3553b7f7f33b0fcfd3c770813d9
parentf0cfc4d90787d42987b072498672b0ddbf813870 (diff)
downloadopenbsd-28c58763220ea6182a611f3e2236b0b1d7f36032.tar.gz
openbsd-28c58763220ea6182a611f3e2236b0b1d7f36032.tar.bz2
openbsd-28c58763220ea6182a611f3e2236b0b1d7f36032.zip
Fix weird calloc() argument order
ok jsg
-rw-r--r--src/lib/libssl/ssl_tlsext.c10
1 files changed, 5 insertions, 5 deletions
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 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.155 2025/04/30 13:50:50 tb Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.156 2025/06/07 10:23:21 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2414,8 +2414,8 @@ tlsext_randomize_build_order(SSL *s)
2414 free(s->tlsext_build_order); 2414 free(s->tlsext_build_order);
2415 s->tlsext_build_order_len = 0; 2415 s->tlsext_build_order_len = 0;
2416 2416
2417 if ((s->tlsext_build_order = calloc(sizeof(*s->tlsext_build_order), 2417 if ((s->tlsext_build_order = calloc(N_TLS_EXTENSIONS,
2418 N_TLS_EXTENSIONS)) == NULL) 2418 sizeof(*s->tlsext_build_order))) == NULL)
2419 return 0; 2419 return 0;
2420 s->tlsext_build_order_len = N_TLS_EXTENSIONS; 2420 s->tlsext_build_order_len = N_TLS_EXTENSIONS;
2421 2421
@@ -2443,8 +2443,8 @@ tlsext_linearize_build_order(SSL *s)
2443 free(s->tlsext_build_order); 2443 free(s->tlsext_build_order);
2444 s->tlsext_build_order_len = 0; 2444 s->tlsext_build_order_len = 0;
2445 2445
2446 if ((s->tlsext_build_order = calloc(sizeof(*s->tlsext_build_order), 2446 if ((s->tlsext_build_order = calloc(N_TLS_EXTENSIONS,
2447 N_TLS_EXTENSIONS)) == NULL) 2447 sizeof(*s->tlsext_build_order))) == NULL)
2448 return 0; 2448 return 0;
2449 s->tlsext_build_order_len = N_TLS_EXTENSIONS; 2449 s->tlsext_build_order_len = N_TLS_EXTENSIONS;
2450 2450