diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-05 14:16:36 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-05 17:47:56 +0100 |
commit | 0a892daa10889c2c29855276c0ac34082dea6dfa (patch) | |
tree | d8c32751f164b0ef3de2efef57e86c515f9dbdab | |
parent | bd426934cf6175b6ff2f51d3609f22210fdfac34 (diff) |
Fix empty sockhost
Whois code assumes that a sockhost containing "0" is unset. sockhost
also gets used in inter-server UID messages. Allowing sockhost to
remain empty is likely to cause protocol bugs elsewhere in ircd. Fill
it with "0", which is what is used when spoofing is in use.
-rw-r--r-- | src/client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c index b3e4a25..cb18488 100644 --- a/src/client.c +++ b/src/client.c @@ -142,6 +142,7 @@ make_client(struct Client *from) SetUnknown(client_p); strcpy(client_p->username, "unknown"); strcpy(client_p->svid, "0"); + strcpy(client_p->sockhost, "0"); return client_p; } |