From e59844c6ea65c57be16b85b4bd5e446c41d66560 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Krivenok" Date: Fri, 26 Feb 2016 11:19:44 -0500 Subject: [PATCH] Fix bug with non-standard port handling. --- lib/mgmt/mgmt_client_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mgmt/mgmt_client_lib.c b/lib/mgmt/mgmt_client_lib.c index 916faed..e1c69e2 100644 --- a/lib/mgmt/mgmt_client_lib.c +++ b/lib/mgmt/mgmt_client_lib.c @@ -71,7 +71,7 @@ mgmt_connect(const char* server, const char* user memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_addr.s_addr = inet_addr(server); - if (port == NULL || STRNCMP_CONST(port,"None")) { + if (port == NULL || !STRNCMP_CONST(port,"None")) { addr.sin_port = htons(PORT); } else {