From 413dcc4cd29be42c421a81453d0e36d783f17d72 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 8 Oct 2010 09:03:43 -0500 Subject: [PATCH] ESL-50: Call close on connection handle if the connection fails --- libs/esl/src/esl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 75a52d6bd2..4a02a8fe38 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -765,6 +765,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char * fail: handle->connected = 0; + esl_disconnect(handle); return ESL_FAIL; }