Skip to content

Commit

Permalink
fix(session): avoid panics when First fragmentation is missing (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
probakowski authored Dec 5, 2024
1 parent fe0d9e9 commit 6e290ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/ironrdp-session/src/fast_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ impl CompleteData {
Fragmentation::Last => {
self.append_data(data);

let complete_data = self.fragmented_data.take().unwrap();

Some(complete_data)
self.fragmented_data.take()
}
}
}
Expand Down

0 comments on commit 6e290ab

Please sign in to comment.