mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Fixed crash in check_signature().
This commit is contained in:
parent
a3d33bfd3f
commit
f5e437a100
5
http.c
5
http.c
@ -132,6 +132,11 @@ int check_signature(snac *snac, xs_dict *req, xs_str **err)
|
|||||||
char *pubkey;
|
char *pubkey;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
if (xs_is_null(sig_hdr)) {
|
||||||
|
*err = xs_fmt("missing 'signature' header");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/* extract the values */
|
/* extract the values */
|
||||||
xs *l = xs_split(sig_hdr, ",");
|
xs *l = xs_split(sig_hdr, ",");
|
||||||
|
Loading…
Reference in New Issue
Block a user