fix: ensure COV subscriptions are initialized before processing SubscribeCOV requests (#1309)

This commit is contained in:
Steve Karg
2026-04-21 15:03:23 -05:00
committed by GitHub
parent d8b439895f
commit d16865ff29
+4
View File
@@ -871,6 +871,10 @@ void handler_cov_subscribe(
BACNET_ADDRESS my_address = { 0 };
bool error = false;
/* Has the COV Initialization been called? */
if (!COV_Subscriptions) {
handler_cov_init();
}
/* initialize a common abort code */
cov_data.error_code = ERROR_CODE_ABORT_SEGMENTATION_NOT_SUPPORTED;
/* encode the NPDU portion of the packet */