提交 d8fc88ea authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-4605 --resolve

上级 99eee5f5
...@@ -12,6 +12,7 @@ void eslSetLogLevel(int level) ...@@ -12,6 +12,7 @@ void eslSetLogLevel(int level)
ESLconnection::ESLconnection(const char *host, const char *port, const char *password) ESLconnection::ESLconnection(const char *host, const char *port, const char *password)
{ {
connection_construct_common(); connection_construct_common();
if (port == NULL) return;
int x_port = atoi(port); int x_port = atoi(port);
esl_connect(&handle, host, x_port, NULL, password); esl_connect(&handle, host, x_port, NULL, password);
...@@ -20,6 +21,7 @@ ESLconnection::ESLconnection(const char *host, const char *port, const char *pas ...@@ -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) ESLconnection::ESLconnection(const char *host, const char *port, const char *user, const char *password)
{ {
connection_construct_common(); connection_construct_common();
if (port == NULL) return;
int x_port = atoi(port); int x_port = atoi(port);
esl_connect(&handle, host, x_port, user, password); esl_connect(&handle, host, x_port, user, password);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论