Setting the hostname twice doesn't do much harm a lot, but isn't elegant.
And for IPv6 addresses, it isn't correct the first time (missing []) ...
assert(Idx >= NONE);
assert(Introducer != NULL);
assert(Idx >= NONE);
assert(Introducer != NULL);
- assert(Hostname != NULL);
client = New_Client_Struct();
if (!client)
client = New_Client_Struct();
if (!client)
- c = Client_NewLocal(new_sock, ip_str, CLIENT_UNKNOWN, false);
+ c = Client_NewLocal(new_sock, NULL, CLIENT_UNKNOWN, false);
if (!c) {
Log(LOG_ALERT,
"Can't accept connection: can't create client structure!");
if (!c) {
Log(LOG_ALERT,
"Can't accept connection: can't create client structure!");