diff --git a/src/p2putil.c b/src/p2putil.c index ce7e342b..79371168 100644 --- a/src/p2putil.c +++ b/src/p2putil.c @@ -720,7 +720,7 @@ static int p2p_parse_attrs(const uint8_t *pdu, size_t len, int type, ...) entry = e->data; if (!entry->present && (entry->flags & ATTR_FLAG_REQUIRED)) { - parse_error = true; + have_required = false; goto done; } }