diff --git a/provisioning_client/samples/iothub_client_sample_hsm/iothub_client_sample_hsm.c b/provisioning_client/samples/iothub_client_sample_hsm/iothub_client_sample_hsm.c index da3294c5e5..da191b8436 100644 --- a/provisioning_client/samples/iothub_client_sample_hsm/iothub_client_sample_hsm.c +++ b/provisioning_client/samples/iothub_client_sample_hsm/iothub_client_sample_hsm.c @@ -42,7 +42,7 @@ static void connection_status_callback(IOTHUB_CLIENT_CONNECTION_STATUS result, I IOTHUB_CLIENT_SAMPLE_INFO* iothub_info = (IOTHUB_CLIENT_SAMPLE_INFO*)user_context; if (iothub_info != NULL) { - if (reason == IOTHUB_CLIENT_CONNECTION_OK && result == IOTHUB_CLIENT_CONFIRMATION_OK) + if (reason == IOTHUB_CLIENT_CONNECTION_OK && result == IOTHUB_CLIENT_CONNECTION_AUTHENTICATED) { iothub_info->connected = 1; }