Skip to content

Commit

Permalink
Merge pull request eclipse-paho#124 from tjdai/master
Browse files Browse the repository at this point in the history
Update MQTTLinux.c
  • Loading branch information
icraggs authored Mar 5, 2018
2 parents 39b209a + b6fe137 commit 29ab2aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MQTTClient-C/src/linux/MQTTLinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ int NetworkConnect(Network* n, char* addr, int port)
n->my_socket = socket(family, type, 0);
if (n->my_socket != -1)
rc = connect(n->my_socket, (struct sockaddr*)&address, sizeof(address));
else
rc = -1;
}

return rc;
Expand Down

0 comments on commit 29ab2aa

Please sign in to comment.