goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
134 stars 71 forks source link

Fix the check of the checksum of received packets. #37

Closed dvucich closed 3 years ago

dvucich commented 3 years ago

The checksum field in the packet was being read at the offset of len-1 instead of pkt_len-1.