fixed a problem with userhost cloaking hopefully

This commit is contained in:
fishwaldo 2002-10-18 04:28:18 +00:00
parent efc2cf3789
commit 8cabd364b4
2 changed files with 6 additions and 1 deletions

View file

@ -12,6 +12,7 @@ Symbols are:
(F) - fixed up m_message.so so that opers/services can send to anyhost with /msg $$* (For operserv global compat) (F) - fixed up m_message.so so that opers/services can send to anyhost with /msg $$* (For operserv global compat)
(F) - Fixed up Hidden Servers to work correctly... (/map /links /whois etc) (F) - Fixed up Hidden Servers to work correctly... (/map /links /whois etc)
(F) - Fixed Usermode problems. (F) - Fixed Usermode problems.
(F) - Fixed a problem with userhost cloaking (Hopefully)
* NeoIRCd Version 0.9.4 - 24th Sept, 2002 - Fish * NeoIRCd Version 0.9.4 - 24th Sept, 2002 - Fish
(F) - Changed HiddenHost System to Use Ultimates version instead... (F) - Changed HiddenHost System to Use Ultimates version instead...

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * USA
* *
* $Id: cloak.c,v 1.4 2002/10/16 05:01:53 fishwaldo Exp $ * $Id: cloak.c,v 1.5 2002/10/18 04:28:18 fishwaldo Exp $
*/ */
/* /*
** **
@ -53,6 +53,7 @@
#include "send.h" #include "send.h"
#include "s_conf.h" #include "s_conf.h"
#include "memory.h" #include "memory.h"
#include "s_log.h"
#define KEY 23857 #define KEY 23857
#define KEY2 38447 #define KEY2 38447
@ -215,6 +216,9 @@ make_virthost (char *curr, char *host, char *new)
parc = str2arr (parv, s, "."); parc = str2arr (parv, s, ".");
parc2 = str2arr (parv2, s2, "."); parc2 = str2arr (parv2, s2, ".");
ilog(L_NOTICE, "curr: %s host: %s new: %s", curr, host, new);
/* crc32 and hashing using our 3 keys */ /* crc32 and hashing using our 3 keys */
hash[0] = ((crc32 (parv[3], strlen (parv[3])) + KEY2) ^ KEY) ^ KEY3; hash[0] = ((crc32 (parv[3], strlen (parv[3])) + KEY2) ^ KEY) ^ KEY3;
hash[1] = ((crc32 (parv[2], strlen (parv[2])) + KEY2) ^ KEY) ^ KEY3; hash[1] = ((crc32 (parv[2], strlen (parv[2])) + KEY2) ^ KEY) ^ KEY3;