From 13faf2f963b2010a6f1bd34447896e359e81a4a8 Mon Sep 17 00:00:00 2001 From: Bret Ambrose Date: Fri, 19 Jul 2024 09:26:04 -0700 Subject: [PATCH] Bad error handling in acquire subscription --- source/request-response/subscription_manager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/request-response/subscription_manager.c b/source/request-response/subscription_manager.c index 522f9738..3928ca30 100644 --- a/source/request-response/subscription_manager.c +++ b/source/request-response/subscription_manager.c @@ -445,7 +445,12 @@ enum aws_acquire_subscription_result_type aws_rr_subscription_manager_acquire_su const struct aws_rr_acquire_subscription_options *options) { if (options->topic_filter_count == 0) { - return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT); + AWS_LOGF_ERROR( + AWS_LS_MQTT_REQUEST_RESPONSE, + "request-response subscription manager - acquire_subscription for operation %" PRIu64 + " with no topic filters", + options->operation_id); + return AASRT_FAILURE; } /*