Skip to content

Commit

Permalink
Don't store all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathanch committed Oct 31, 2023
1 parent 9e6970d commit 6540eb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,6 @@ ffi!(fn pgp_get_key_ids(session: *mut Session,
let mut list = StringList::empty(mm);

let mut pkesks: Vec<PKESK> = Vec::new(); // Accumulator for PKESKs.
let mut packets: Vec<Packet> = Vec::new(); // Accumulator for packets.

let mut ppr = PacketParserBuilder::from_bytes(message)
.expect("NOT EOF").build().unwrap();
Expand All @@ -788,7 +787,7 @@ ffi!(fn pgp_get_key_ids(session: *mut Session,
ppr = ppr_;
match packet {
Packet::PKESK(p) => pkesks.push(p),
_ => packets.push(packet),
_ => (),
}
}

Expand Down

0 comments on commit 6540eb5

Please sign in to comment.