Browse Source

Fix incorrect check during SDP parsing.

master
Juliusz Chroboczek 6 months ago
parent
commit
af0a05d172
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sdp/sdp.go

+ 1
- 1
sdp/sdp.go View File

@ -450,7 +450,7 @@ func parseMediaInfo(s string) (port uint16, proto string, pts []uint8, err error
// Convert port to int and check range.
portU, err := strconv.ParseUint(portS, 10, 16)
if err != nil || !(0 <= port && port <= 65535) {
if err != nil || !(0 <= portU && portU <= 65535) {
return 0, "", nil, errors.New("invalid m= port")
}
port = uint16(portU)


Loading…
Cancel
Save