From: Jeff Lenk Date: Tue, 11 Sep 2012 00:34:04 +0000 (-0500) Subject: FS-4605 --resolve X-Git-Tag: v1.2.3^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8fc88ea7512fb2db0ae034f41bcf503393ad539;p=thirdparty%2Ffreeswitch.git FS-4605 --resolve --- 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);