myconfig, configure option testing and fixing, monitor_fs()

This commit is contained in:
joonicks
2018-04-15 03:57:44 +02:00
parent db4842c42e
commit 5f0fdada3e
26 changed files with 462 additions and 264 deletions

View File

@@ -185,15 +185,15 @@ void botnet_relay(BotNet *source, char *format, ...)
if (!sz)
{
va_start(msg,format);
vsprintf(gsockdata,format,msg);
vsprintf(globaldata,format,msg);
va_end(msg);
sz = strlen(gsockdata);
sz = strlen(globaldata);
}
if (write(bn->sock,gsockdata,sz) < 0)
if (write(bn->sock,globaldata,sz) < 0)
botnet_deaduplink(bn);
#ifdef DEBUG
debug("[bnr] {%i} %s",bn->sock,gsockdata);
debug("[bnr] {%i} %s",bn->sock,globaldata);
#endif /* DEBUG */
}
}
@@ -927,8 +927,8 @@ void partyAuth(BotNet *bn, char *rest)
m = 0;
if (user->pass)
{
sprintf(gsockdata,"%s %s %s",userhost,user->name,user->pass);
m = passmatch(gsockdata,checksum);
sprintf(globaldata,"%s %s %s",userhost,user->name,user->pass);
m = passmatch(globaldata,checksum);
}
if (m)
{