Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jun 18, 2024
1 parent 3d25882 commit c6e8e66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/secure_tunneling.c
Original file line number Diff line number Diff line change
Expand Up @@ -2013,10 +2013,14 @@ void aws_secure_tunnel_service_operational_state(struct aws_secure_tunnel *secur
if (secure_tunnel->connections->protocol_version != 3) {
AWS_LOGF_WARN(
AWS_LS_IOTDEVICE_SECURE_TUNNELING,
"Connection Start may only be used with a Protocol V3 stream.");
"id=%p: Connection Start may only be used with a Protocol V3 stream.",
(void *)secure_tunnel);
error_code = AWS_ERROR_IOTDEVICE_SECURE_TUNNELING_PROTOCOL_VERSION_MISMATCH;
} else if (current_operation->message_view->connection_id == 0) {
AWS_LOGF_WARN(AWS_LS_IOTDEVICE_SECURE_TUNNELING, "Connection Start must include a connection id.");
AWS_LOGF_WARN(
AWS_LS_IOTDEVICE_SECURE_TUNNELING,
"id=%p: Connection Start must include a connection id.",
(void *)secure_tunnel);
error_code = AWS_ERROR_IOTDEVICE_SECURE_TUNNELING_INVALID_CONNECTION_ID;
}
/* If a connection start attempts to be sent on an unopen stream, discard it. */
Expand Down

0 comments on commit c6e8e66

Please sign in to comment.