File rsyslog-5.x-memcpy-overflow.patch of Package rsyslog.import5099

--- rsyslog-5.x/runtime/net.c
+++ rsyslog-5.x/runtime/net.c	2011/08/29 16:38:49
@@ -721,7 +721,7 @@ static rsRetVal AddAllowedSender(struct
 						SIN(allowIP.addr.NetAddr)->sin_port   = 0;
 						memcpy(&(SIN(allowIP.addr.NetAddr)->sin_addr.s_addr),
 							&(SIN6(res->ai_addr)->sin6_addr.s6_addr32[3]),
-							sizeof (struct sockaddr_in));
+							sizeof (in_addr_t));
 
 						if((iRet = AddAllowedSenderEntry(ppRoot, ppLast, &allowIP,
 								iSignificantBits))
openSUSE Build Service is sponsored by