datarhei / gosrt

Implementation of the SRT protocol in pure Go
https://datarhei.com
MIT License
114 stars 17 forks source link

Fix crash in client and server with invalid handshake packets #60

Closed aler9 closed 2 months ago

aler9 commented 3 months ago

In both Dial() and Listen(), if the peer sends a V5 handshake packet without the extension field, the library crashes. This patch fixes the issue and adds unit tests.