1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

jws: lws_gencrypto_jws_alg_to_definition needs sentinel

Otherwise segfault when end of array reached.
This commit is contained in:
Akira Tsukamoto 2020-03-21 07:02:27 +00:00 committed by Andy Green
parent 9cac58a4c2
commit 9a5861cf76

View file

@ -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}
};
/*