diff options
Diffstat (limited to 'chat/unrealircd/patches/patch-ag')
-rw-r--r-- | chat/unrealircd/patches/patch-ag | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/chat/unrealircd/patches/patch-ag b/chat/unrealircd/patches/patch-ag deleted file mode 100644 index 10d8261571b..00000000000 --- a/chat/unrealircd/patches/patch-ag +++ /dev/null @@ -1,48 +0,0 @@ -$NetBSD: patch-ag,v 1.1 2009/04/13 16:20:52 adrianp Exp $ - ---- src/s_conf.c.orig 2007-06-27 12:36:31.000000000 +0100 -+++ src/s_conf.c -@@ -2663,25 +2663,15 @@ int AllowClient(aClient *cptr, struct ho - Debug((DEBUG_DNS, "a_il: %s->%s", sockhost, fullname)); - if (index(aconf->hostname, '@')) - { -- /* -- * Doing strlcpy / strlcat here -- * would simply be a waste. We are -- * ALREADY sure that it is proper -- * lengths -- */ - if (aconf->flags.noident) -- strcpy(uhost, username); -+ strlcpy(uhost, username, sizeof(uhost)); - else -- strcpy(uhost, cptr->username); -- strcat(uhost, "@"); -+ strlcpy(uhost, cptr->username, sizeof(uhost)); -+ strlcat(uhost, "@", sizeof(uhost)); - } - else - *uhost = '\0'; -- /* -- * Same here as above -- * -Stskeeps -- */ -- strncat(uhost, fullname, sizeof(uhost) - strlen(uhost)); -+ strlcat(uhost, fullname, sizeof(uhost)); - if (!match(aconf->hostname, uhost)) - goto attach; - } -@@ -2692,11 +2682,11 @@ int AllowClient(aClient *cptr, struct ho - strncpyzt(uhost, username, sizeof(uhost)); - else - strncpyzt(uhost, cptr->username, sizeof(uhost)); -- (void)strcat(uhost, "@"); -+ (void)strlcat(uhost, "@", sizeof(uhost)); - } - else - *uhost = '\0'; -- (void)strncat(uhost, sockhost, sizeof(uhost) - strlen(uhost)); -+ strlcat(uhost, sockhost, sizeof(uhost)); - /* Check the IP */ - if (match_ip(cptr->ip, uhost, aconf->ip, aconf->netmask)) - goto attach; |