Merge pull request #1187 from majestrate/future-proof-intro-sets-2020-03-14

discard unknown fields in introset for future use
This commit is contained in:
Jeff 2020-03-15 13:05:51 -04:00 committed by GitHub
commit 03da1d7d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,10 @@ namespace llarp
if(!BEncodeMaybeReadDictEntry("z", Z, read, key, buf)) if(!BEncodeMaybeReadDictEntry("z", Z, read, key, buf))
return false; return false;
return read; if(read)
return true;
return bencode_discard(buf);
} }
bool bool