From b3d1f67027a158158eeb2960624ad23ffce69da7 Mon Sep 17 00:00:00 2001 From: Dane Walton Date: Mon, 8 Mar 2021 20:06:12 -0800 Subject: [PATCH] update precondition on provisioning --- sdk/src/azure/iot/az_iot_provisioning_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/azure/iot/az_iot_provisioning_client.c b/sdk/src/azure/iot/az_iot_provisioning_client.c index 483c335659..e31cdb8654 100644 --- a/sdk/src/azure/iot/az_iot_provisioning_client.c +++ b/sdk/src/azure/iot/az_iot_provisioning_client.c @@ -518,8 +518,8 @@ AZ_NODISCARD az_result az_iot_provisioning_client_parse_received_topic_and_paylo _az_PRECONDITION_NOT_NULL(client); _az_PRECONDITION_VALID_SPAN(client->_internal.global_device_endpoint, 1, false); - _az_PRECONDITION_VALID_SPAN(received_topic, 0, false); - _az_PRECONDITION_VALID_SPAN(received_payload, 0, false); + _az_PRECONDITION_VALID_SPAN(received_topic, 1, false); + _az_PRECONDITION_VALID_SPAN(received_payload, 1, false); _az_PRECONDITION_NOT_NULL(out_response); az_span str_dps_registrations_res = _az_iot_provisioning_get_dps_registrations_res();