Explorar o código

* Fix invalid cookies with mismatch username capitalizations (bot vs botnet)

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
91327f162f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -359,7 +359,7 @@ sdprintf("tohash: %s", tohash);
 static inline void cookie_key(char *key, size_t key_len, const char* randstring, const memberlist *opper, const char *chname) {
   const char salt1[] = SALT1;
   const char salt2[] = SALT2;
-  simple_snprintf2(key, key_len, STR("%c%c%c%s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s"),
+  simple_snprintf2(key, key_len, STR("%c%c%c%^s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s"),
                                         randstring[0],
                                         salt1[5],
                                         randstring[3],