Skip to content

Commit f72ad46

Browse files
authored
fix: naive_redirect_server TCP Port should be a u16 (#1611)
The Naive Redirect Server function accepts a u32 for what should be a 16-bit unsigned integer. This change changes the function to accept a u16 to avoid out-of-bounds input.
1 parent 9d112d1 commit f72ad46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/identity/src/development.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use tracing::debug;
2121
/// This implementation should only be used for testing.
2222
pub fn naive_redirect_server(
2323
auth_obj: &AuthorizationCodeFlow,
24-
port: u32,
24+
port: u16,
2525
) -> azure_core::Result<AuthorizationCode> {
2626
let listener = TcpListener::bind(format!("127.0.0.1:{port}")).unwrap();
2727

0 commit comments

Comments
 (0)