Skip to content

Commit

Permalink
Merge pull request #2 from krivenok/master
Browse files Browse the repository at this point in the history
Fix bug with non-standard port handling.
  • Loading branch information
gao-yan committed Mar 7, 2016
2 parents 41222a8 + e59844c commit 1a903a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mgmt/mgmt_client_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1a903a1

Please sign in to comment.