Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 136222
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +2 lines)
Line  Link Here
0
-- 0verkill-0.16/net.c
0
++ 0verkill-0.16/net.c
Lines 84-89 Link Here
84
	p=mem_alloc(max_len+12);
84
	p=mem_alloc(max_len+12);
85
	if (!p)return -1;  /* not enough memory */
85
	if (!p)return -1;  /* not enough memory */
86
	retval=recvfrom(fd,p,max_len+12,0,addr,addr_len);
86
	retval=recvfrom(fd,p,max_len+12,0,addr,addr_len);
87
	if (retval<12)return -1; /* not enough data from network */
87
	memcpy(packet,p+12,max_len);
88
	memcpy(packet,p+12,max_len);
88
	crc=p[0]+(p[1]<<8)+(p[2]<<16)+(p[3]<<24);
89
	crc=p[0]+(p[1]<<8)+(p[2]<<16)+(p[3]<<24);
89
	s=p[4]+(p[5]<<8)+(p[6]<<16)+(p[7]<<24);
90
	s=p[4]+(p[5]<<8)+(p[6]<<16)+(p[7]<<24);

Return to bug 136222