meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

Convert label_length to host byte order before use #3146

Closed uxmaster closed 1 year ago

uxmaster commented 1 year ago

Just adding missing ntohs.

BTW. We got plenty of channel %d is in state 1 instead of CLOSED. State 1 is DATA_CHANNEL_CONNECTING and it seems everything works despite the message. Maybe it should be treated as a warning instead of an error.

lminiero commented 1 year ago

Thanks, good catch on the missing ntohs! I'll apply the same fix on master.