1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/korean/bitchx/files/patch-al
CHOI Junho 0b3961913c Security fix.
PR:		ports/23703
Submitted by:	maintainer
2000-12-24 14:29:41 +00:00

20 lines
403 B
Plaintext

--- source/misc.c.orig Tue Jul 4 18:01:52 2000
+++ source/misc.c Thu Dec 21 11:03:09 2000
@@ -2427,6 +2427,8 @@
switch(type)
{
case T_A :
+ if (dlen != sizeof(struct in_addr))
+ return 0;
rptr->re_he.h_length = dlen;
if (ans == 1)
rptr->re_he.h_addrtype=(class == C_IN) ?
@@ -2473,6 +2475,7 @@
*alias = NULL;
break;
default :
+ cp += dlen ;
break;
}
}