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
138 stars 71 forks source link

Fix the master key check in osdp_cp_setup() #56

Closed dvucich closed 3 years ago

dvucich commented 3 years ago

Change the check related to the master key so that the master key is used and accessed if and only if it is not NULL. Previously a NULL or undefined master key could be used if the count of individually set SCBKs was less than the number of PD.

sidcha commented 3 years ago

This PR can me merged with the commit message rewording, with or without the code change suggested.

Thanks for the PR.