From 6f084d8c33e44cc69c7e5f29b6e169d7f34d0e0b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 23 May 2020 19:02:31 -0700 Subject: fixes #1239 Use after free in tls Also, addressed a number of Clang-tidy complaints. Potential hangs in close addressed as well. --- src/core/dialer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/dialer.c') diff --git a/src/core/dialer.c b/src/core/dialer.c index 8a463452..fe9cb92f 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -1,5 +1,5 @@ // -// Copyright 2019 Staysail Systems, Inc. +// Copyright 2020 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -345,10 +345,12 @@ dialer_connect_cb(void *arg) break; case NNG_ECLOSED: // No further action. case NNG_ECANCELED: // No further action. + nni_dialer_bump_error(d, rv); break; case NNG_ECONNREFUSED: case NNG_ETIMEDOUT: default: + nni_dialer_bump_error(d, rv); if (user_aio == NULL) { nni_dialer_timer_start(d); } else { -- cgit v1.2.3-70-g09d2