Skip to content

Commit

Permalink
Return an error if the path is not permanent
Browse files Browse the repository at this point in the history
  • Loading branch information
KershawChang committed Mar 1, 2024
1 parent ad027cf commit baa9b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neqo-transport/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,10 @@ impl Connection {
};

let path = close.path().borrow();
if path.is_temporary() {
debug_assert!(false, "Path is not permanent");
return Err(Error::InternalError);

Check warning on line 1942 in neqo-transport/src/connection/mod.rs

View check run for this annotation

Codecov / codecov/patch

neqo-transport/src/connection/mod.rs#L1941-L1942

Added lines #L1941 - L1942 were not covered by tests
}
let (_, mut builder) = Self::build_packet_header(
&path,
cspace,
Expand Down

0 comments on commit baa9b52

Please sign in to comment.