Skip to content

Commit

Permalink
Check portRange for null before raise ApplicationException
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Chistov committed Oct 2, 2023
1 parent c84b372 commit 9ac7ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/Net/NetServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ public static void CreateRtpSocket(
}
else
{
throw new ApplicationException($"Failed to create and bind RTP socket using bind address {bindAddress}:{bindPort}(portRange=[{portRange.StartPort},{portRange.EndPort}],useDualMode={useDualMode},requireEvenPort={requireEvenPort},createControlSocket={createControlSocket},protocolType={protocolType}).");
throw new ApplicationException($"Failed to create and bind RTP socket using bind address {bindAddress}:{bindPort}(portRange=[{portRange?.StartPort},{portRange?.EndPort}],useDualMode={useDualMode},requireEvenPort={requireEvenPort},createControlSocket={createControlSocket},protocolType={protocolType}).");
}
}

Expand Down

0 comments on commit 9ac7ab4

Please sign in to comment.