0001-linux_socketpair-Free-socketpair-file-descriptors-if.patch

jerome, 04/05/2013 09:13 AM

Download (936 Bytes)

View differences:

sys/emulation/linux/linux_socket.c
556 556
	error = kern_socketpair(domain, linux_args.type, linux_args.protocol,
557 557
	    sockv);
558 558

  
559
	if (error == 0)
559
	if (error == 0) {
560 560
		error = copyout(sockv, linux_args.rsv, sizeof(sockv));
561
		
562
		if (error != 0) {
563
			kern_close(sockv[0]);
564
			kern_close(sockv[1]);
565
		}
566
	}
567

  
561 568
	return(error);
562 569
}
563 570

  
564
-