From dad8477cb35cd2ffb5c9702c28d1783cf9b2909d Mon Sep 17 00:00:00 2001 From: stskeeps Date: Wed, 27 Jun 2007 10:54:51 +0000 Subject: [PATCH] - Applied patch to fix some win32 problems reported by Bock, fixed by fez --- Changes | 1 + src/modules/m_chghost.c | 3 ++- src/modules/m_chgident.c | 3 ++- src/s_serv.c | 7 ++++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 8e7efea98..8be62a94e 100644 --- a/Changes +++ b/Changes @@ -1513,3 +1513,4 @@ a new fight with debian-legal again?) - #0003244 reported by CuLpA about grammar errors in webtv outputs - Entering 3.2.7 RC1 phase +- Applied patch to fix some win32 problems reported by Bock, fixed by fez diff --git a/src/modules/m_chghost.c b/src/modules/m_chghost.c index dce18d17c..665c150ae 100644 --- a/src/modules/m_chghost.c +++ b/src/modules/m_chghost.c @@ -146,14 +146,15 @@ DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[]) if ((acptr = find_person(parv[1], NULL))) { + DYN_LOCAL(char, did_parts, acptr->user->joined); if (MyClient(sptr) && (IsLocOp(sptr) && !MyClient(acptr))) { sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]); + DYN_FREE(did_parts); return 0; } - DYN_LOCAL(char, did_parts, acptr->user->joined); if (!strcmp(GetHost(acptr), parv[2])) { sendnotice(sptr, "*** /ChgHost Error: requested host is same as current host."); diff --git a/src/modules/m_chgident.c b/src/modules/m_chgident.c index 4c28c56fd..fde6325bf 100644 --- a/src/modules/m_chgident.c +++ b/src/modules/m_chgident.c @@ -158,14 +158,15 @@ int legalident = 1; if ((acptr = find_person(parv[1], NULL))) { + DYN_LOCAL(char, did_parts, acptr->user->joined); if (MyClient(sptr) && (IsLocOp(sptr) && !MyClient(acptr))) { sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]); + DYN_FREE(did_parts); return 0; } - DYN_LOCAL(char, did_parts, acptr->user->joined); switch (UHOST_ALLOWED) { case UHALLOW_NEVER: diff --git a/src/s_serv.c b/src/s_serv.c index fd1ba8aa8..a33411eba 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -66,6 +66,12 @@ struct tm smotd_tm; aMotd *read_file(char *filename, aMotd **list); aMotd *read_file_ex(char *filename, aMotd **list, struct tm *); extern aMotd *Find_file(char *, short); + +#ifdef USE_SSL +extern void reinit_ssl(aClient *); +#endif + + /* ** m_functions execute protocol messages on this server: ** CMD_FUNC(functionname) causes it to use the header @@ -675,7 +681,6 @@ CMD_FUNC(m_rehash) if (!_match("-ssl*", parv[1])) { #ifdef USE_SSL - extern void reinit_ssl(aClient *); reinit_ssl(sptr); #else sendnotice(sptr, "SSL is not enabled on this server");