From fcc4f8c680d27526704e5849cc166486416f3f41 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 7 Jul 2021 18:20:46 +0200 Subject: [PATCH] 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 --- _clang-format | 1 + src/event.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_clang-format b/_clang-format index c80ab6c..798ab96 100644 --- a/_clang-format +++ b/_clang-format @@ -8,6 +8,7 @@ BinPackParameters: 'false' BreakBeforeBraces: Linux ColumnLimit: '80' DerivePointerAlignment: 'false' +IndentGotoLabels: false IndentWidth: '4' PointerAlignment: Right SortIncludes: 'false' diff --git a/src/event.c b/src/event.c index a44ed68..1edddac 100644 --- a/src/event.c +++ b/src/event.c @@ -110,6 +110,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, unsigned long timeout) xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting."); conn->error = ECONNABORTED; 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_disconnect(conn); } - +NEXT_ITEM: connitem = connitem->next; }