Skip to content

Commit

Permalink
Fix picky switch build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 24, 2024
1 parent 08b6cdd commit 7c176a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/proxy_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ static int read_tlv(struct mosquitto *context, bool *have_certificate)

switch(tlv->type){
case PP2_TYPE_SSL:
int rc = read_tlv_ssl(context, tlv_len, have_certificate);
if(rc) return rc;
{
int rc = read_tlv_ssl(context, tlv_len, have_certificate);
if(rc) return rc;
}
break;
default:
context->proxy.pos += (uint16_t)tlv_len;
Expand Down

0 comments on commit 7c176a0

Please sign in to comment.