mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 15:43:12 +02:00
- Fixed implicit declaration compiler warning if compiling for ipv6.
- Fixed some small memory leak on rehash. - Removed spamfilter-oversized-checking when trying to REMOVE one.. duh.. reported by satmd (#00029160).
This commit is contained in:
@@ -1168,3 +1168,7 @@
|
||||
- (multiple?) IPv6 listen blocks could cause a crash in config parser. Reported by Robby22
|
||||
(#0002868).
|
||||
- Added error checking to (main) setuid/setgid calls.
|
||||
- Fixed implicit declaration compiler warning if compiling for ipv6.
|
||||
- Fixed some small memory leak on rehash.
|
||||
- Removed spamfilter-oversized-checking when trying to REMOVE one.. duh.. reported by satmd
|
||||
(#00029160).
|
||||
|
||||
@@ -116,6 +116,7 @@ void CommandDel(Command *command) {
|
||||
if (!*tmp)
|
||||
{
|
||||
IsupportDel(IsupportFind("CMDS"));
|
||||
free(tmp);
|
||||
cmdstr = NULL;
|
||||
}
|
||||
else
|
||||
|
||||
+4
-1
@@ -35,8 +35,11 @@
|
||||
#include <string.h>
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include "inet.h"
|
||||
#include "h.h"
|
||||
#include "proto.h"
|
||||
#ifdef STRIPBADWORDS
|
||||
@@ -806,7 +809,7 @@ int n;
|
||||
* on 50 characters for the rest... -- Syzop
|
||||
*/
|
||||
n = strlen(reason) + strlen(parv[6]) + strlen(tkllayer[5]) + (NICKLEN * 2) + 40;
|
||||
if (n > 500)
|
||||
if ((n > 500) && (whattodo == 0))
|
||||
{
|
||||
sendnotice(sptr, "Sorry, spamfilter too long. You'll either have to trim down the "
|
||||
"reason or the regex (exceeded by %d bytes)", n - 500);
|
||||
|
||||
@@ -103,6 +103,7 @@ void start_auth(aClient *cptr)
|
||||
set_non_blocking(cptr->authfd, cptr);
|
||||
|
||||
/* Bind to the IP the user got in */
|
||||
memset(&sock, 0, sizeof(sock));
|
||||
len = sizeof(us);
|
||||
if (!getsockname(cptr->fd, (struct SOCKADDR *)&us, &len))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user