From 0a892daa10889c2c29855276c0ac34082dea6dfa Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 5 Jun 2016 14:16:36 +0100 Subject: 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. --- src/client.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit