1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +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 14:37:19 +09:00 committed by Andy Green
parent 6d5ebd237c
commit 47ea968e16

2
lib/tls/lws-gencrypto-common.c Executable file → Normal file
View file

@ -238,6 +238,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}
};
/*