Fix last(?) batch of malloc-NULL places
[openssl.git] / ssl / t1_lib.c
index b777b3acbb5faf1506553282155a288e6eed4445..6f4923d5b6687b07d6c706447bbfe530f6f3b619 100644 (file)
@@ -366,7 +366,7 @@ int tls1_set_groups(uint16_t **pext, size_t *pextlen,
     return 1;
 }
 
-# define MAX_CURVELIST   28
+# define MAX_CURVELIST   OSSL_NELEM(nid_list)
 
 typedef struct {
     size_t nidcnt;