Use NetworkToHost32 instead of HostToNetwork32 to translate PPID.

Note that this wasn't actually making a difference since both do the
same thing effectively.

Bug: webrtc:11386
Change-Id: I49d84d363dce12eabeb3770b40abdfdb674a05ac
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169433
Commit-Queue: Taylor <deadbeef@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30665}
This commit is contained in:
Taylor Brandstetter 2020-02-28 15:53:25 -08:00 committed by Commit Bot
parent d084ea93b6
commit 83762b21db

View File

@ -317,7 +317,7 @@ class SctpTransport::UsrSctpWrapper {
// memory cleanup. But this does simplify code.
const PayloadProtocolIdentifier ppid =
static_cast<PayloadProtocolIdentifier>(
rtc::HostToNetwork32(rcv.rcv_ppid));
rtc::NetworkToHost32(rcv.rcv_ppid));
DataMessageType type = DMT_NONE;
if (!GetDataMediaType(ppid, &type) && !(flags & MSG_NOTIFICATION)) {
// It's neither a notification nor a recognized data packet. Drop it.