g4klx / DMRGateway

A multi-network DMR gateway for the MMDVM.
GNU General Public License v2.0
141 stars 91 forks source link

avoid invalid lat/lon/height values increasing RPTC pkt len #112

Closed narspt closed 2 years ago

narspt commented 2 years ago

Small patch to avoid invalid latitude/longitude/height values incorrectly increasing/corrupting RPTC packet length.

I was tired to see a client trying to connect to my XLX every minute without success for days now... then I did dump his traffic and found the problem, his RPTC packets have a length of 304 bytes (instead of 302) caused by invalid latitude/longitude.