diff options
author | default <nobody@localhost> | 2023-06-13 22:09:20 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-13 22:09:20 +0200 |
commit | f5e437a100376e1468028b90fb570c343f4b6e0d (patch) | |
tree | 55ed7590f661c295fa0a2acc089a0b8c61b686a9 /http.c | |
parent | a3d33bfd3f04536763df5a52dc9d0263b5eb3b33 (diff) |
Fixed crash in check_signature().
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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, ","); |