skip further processing on TLS error

While reading through the code this seemed logical to do.
I haven't seen this occuring in the wild!

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2021-07-07 18:20:46 +02:00
parent a1de389e45
commit fcc4f8c680
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ BinPackParameters: 'false'
BreakBeforeBraces: Linux BreakBeforeBraces: Linux
ColumnLimit: '80' ColumnLimit: '80'
DerivePointerAlignment: 'false' DerivePointerAlignment: 'false'
IndentGotoLabels: false
IndentWidth: '4' IndentWidth: '4'
PointerAlignment: Right PointerAlignment: Right
SortIncludes: 'false' SortIncludes: 'false'

View File

@@ -110,6 +110,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, unsigned long timeout)
xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting."); xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting.");
conn->error = ECONNABORTED; conn->error = ECONNABORTED;
conn_disconnect(conn); conn_disconnect(conn);
goto NEXT_ITEM;
} }
} }
@@ -154,7 +155,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, unsigned long timeout)
conn->error = ECONNABORTED; conn->error = ECONNABORTED;
conn_disconnect(conn); conn_disconnect(conn);
} }
NEXT_ITEM:
connitem = connitem->next; connitem = connitem->next;
} }