}
struct addrinfo *ai;
+
struct addrinfo hint = {
.ai_family = addressfamily,
.ai_socktype = SOCK_STREAM,
if(!get_config_string(lookup_config(mesh->config, "Port"), &mesh->myport)) {
int port = check_port(mesh);
- if (port == 0)
+
+ if(port == 0) {
return false;
+ }
+
xasprintf(&mesh->myport, "%d", port);
}