From 9a5861cf763d1f448c1e2bc812700c93367b2906 Mon Sep 17 00:00:00 2001 From: Akira Tsukamoto Date: Sat, 21 Mar 2020 07:02:27 +0000 Subject: [PATCH] jws: lws_gencrypto_jws_alg_to_definition needs sentinel Otherwise segfault when end of array reached. --- lib/tls/lws-gencrypto-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tls/lws-gencrypto-common.c b/lib/tls/lws-gencrypto-common.c index 468b530e2..d2c8a0c32 100644 --- a/lib/tls/lws-gencrypto-common.c +++ b/lib/tls/lws-gencrypto-common.c @@ -234,6 +234,8 @@ static const struct lws_jose_jwe_alg lws_gencrypto_jws_alg_map[] = { "PS512", NULL, 2048, 4096, 0 }, #endif + /* list terminator */ + { 0, 0, 0, 0, NULL, NULL, 0, 0, 0} }; /*