]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4605 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Tue, 11 Sep 2012 00:34:04 +0000 (19:34 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 11 Sep 2012 00:34:04 +0000 (19:34 -0500)
libs/esl/src/esl_oop.cpp

index 4f60a928ee20fdc61fdb3ed644fea0a5f2e44374..80e3c74db2142329918211ac9402d99bf18f1006 100644 (file)
@@ -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);