Bugfix/confirmed request service decode error (#259)
* Fix confirmed service decode error handling. Thank you, Bryan! Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -171,6 +171,10 @@ void apdu_handler(BACNET_ADDRESS *src,
|
||||
&apdu[0], /* APDU data */
|
||||
apdu_len, &service_data, &service_choice, &service_request,
|
||||
&service_request_len);
|
||||
if (len == 0) {
|
||||
/* service data unable to be decoded - simply drop */
|
||||
break;
|
||||
}
|
||||
if (apdu_confirmed_dcc_disabled(service_choice)) {
|
||||
/* When network communications are completely disabled,
|
||||
only DeviceCommunicationControl and ReinitializeDevice
|
||||
|
||||
Reference in New Issue
Block a user