committed by
Daniel D’Aquino
parent
373cd71f69
commit
30ba0d72cc
@@ -31,7 +31,7 @@ struct nostr_tlvs {
|
|||||||
|
|
||||||
static int parse_nostr_tlv(struct cursor *cur, struct nostr_tlv *tlv) {
|
static int parse_nostr_tlv(struct cursor *cur, struct nostr_tlv *tlv) {
|
||||||
// get the tlv tag
|
// get the tlv tag
|
||||||
if (!pull_byte(cur, &tlv->type))
|
if (!cursor_pull_byte(cur, &tlv->type))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// unknown, fail!
|
// unknown, fail!
|
||||||
@@ -39,7 +39,7 @@ static int parse_nostr_tlv(struct cursor *cur, struct nostr_tlv *tlv) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// get the length
|
// get the length
|
||||||
if (!pull_byte(cur, &tlv->len))
|
if (!cursor_pull_byte(cur, &tlv->len))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// is the reported length greater then our buffer? if so fail
|
// is the reported length greater then our buffer? if so fail
|
||||||
|
|||||||
Reference in New Issue
Block a user