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:
@@ -8,6 +8,7 @@ BinPackParameters: 'false'
|
||||
BreakBeforeBraces: Linux
|
||||
ColumnLimit: '80'
|
||||
DerivePointerAlignment: 'false'
|
||||
IndentGotoLabels: false
|
||||
IndentWidth: '4'
|
||||
PointerAlignment: Right
|
||||
SortIncludes: 'false'
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user