From 7c99a8a5f8925caba738aca32fea6627d4e3fe6b Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 27 Jun 2015 09:07:33 +0200 Subject: [PATCH] fix DNS (the bug I created a week ago, anyway) --- src/s_bsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s_bsd.c b/src/s_bsd.c index 93122cea8..3c8cd4876 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -689,6 +689,8 @@ static int check_init(aClient *cptr, char *sockn, size_t size) struct SOCKADDR_IN sk; int len = sizeof(struct SOCKADDR_IN); + strlcpy(sockn, cptr->sockhost, HOSTLEN); + RunHookReturnInt3(HOOKTYPE_CHECK_INIT, cptr, sockn, size, ==0); /* Some silly hack to convert 127.0.0.1 and such into 'localhost' */