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:
parent
9cac58a4c2
commit
9a5861cf76
1 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue