Secured Active-COV-Subscriptions property encoding. (#763)

This commit is contained in:
Tomasz Kazimierz Motyl
2024-09-21 15:22:08 +01:00
committed by GitHub
parent 44757c755e
commit 869a827d55
2 changed files with 29 additions and 12 deletions
+6 -1
View File
@@ -1497,7 +1497,12 @@ int Device_Read_Property_Local(BACNET_READ_PROPERTY_DATA *rpdata)
break;
#endif
case PROP_ACTIVE_COV_SUBSCRIPTIONS:
apdu_len = handler_cov_encode_subscriptions(&apdu[0], apdu_max);
if ((apdu_len = handler_cov_encode_subscriptions(
&apdu[0], apdu_max)) < 0) {
rpdata->error_code =
ERROR_CODE_ABORT_SEGMENTATION_NOT_SUPPORTED;
apdu_len = BACNET_STATUS_ABORT;
}
break;
default:
rpdata->error_class = ERROR_CLASS_PROPERTY;