From 2b334d571f24a71ec2f447ef4bb6164950e85231 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Mon, 10 Sep 2012 19:34:04 -0500 Subject: [PATCH] FS-4605 --resolve --- libs/esl/src/esl_oop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/esl/src/esl_oop.cpp b/libs/esl/src/esl_oop.cpp index 4f60a928ee..80e3c74db2 100644 --- a/libs/esl/src/esl_oop.cpp +++ b/libs/esl/src/esl_oop.cpp @@ -12,6 +12,7 @@ void eslSetLogLevel(int level) ESLconnection::ESLconnection(const char *host, const char *port, const char *password) { connection_construct_common(); + if (port == NULL) return; int x_port = atoi(port); esl_connect(&handle, host, x_port, NULL, password); @@ -20,6 +21,7 @@ ESLconnection::ESLconnection(const char *host, const char *port, const char *pas ESLconnection::ESLconnection(const char *host, const char *port, const char *user, const char *password) { connection_construct_common(); + if (port == NULL) return; int x_port = atoi(port); esl_connect(&handle, host, x_port, user, password);