snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit f5e437a100376e1468028b90fb570c343f4b6e0d
parent a3d33bfd3f04536763df5a52dc9d0263b5eb3b33
Author: default <nobody@localhost>
Date:   Tue, 13 Jun 2023 22:09:20 +0200

Fixed crash in check_signature().

Diffstat:
Mhttp.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/http.c b/http.c @@ -132,6 +132,11 @@ int check_signature(snac *snac, xs_dict *req, xs_str **err) char *pubkey; char *p; + if (xs_is_null(sig_hdr)) { + *err = xs_fmt("missing 'signature' header"); + return 0; + } + { /* extract the values */ xs *l = xs_split(sig_hdr, ",");