diff options
| author | tb <> | 2025-06-07 10:23:21 +0000 |
|---|---|---|
| committer | tb <> | 2025-06-07 10:23:21 +0000 |
| commit | 91ab3b327e32cfcdfb3981de527060e4638b8364 (patch) | |
| tree | b552fed88f74b3553b7f7f33b0fcfd3c770813d9 /src | |
| parent | 852ff96f12cab66a43fa3f58d19246c7a21c875e (diff) | |
| download | openbsd-91ab3b327e32cfcdfb3981de527060e4638b8364.tar.gz openbsd-91ab3b327e32cfcdfb3981de527060e4638b8364.tar.bz2 openbsd-91ab3b327e32cfcdfb3981de527060e4638b8364.zip | |
Fix weird calloc() argument order
ok jsg
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 10 |
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 | ||
