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:
parent
6d5ebd237c
commit
47ea968e16
1 changed files with 2 additions and 0 deletions
2
lib/tls/lws-gencrypto-common.c
Executable file → Normal file
2
lib/tls/lws-gencrypto-common.c
Executable file → Normal 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}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue