Project

General

Profile

Bug #2136 ยป 0001-linux_socketpair-Free-socketpair-file-descriptors-if.patch

jerome, 04/05/2013 09:13 AM

View differences:

sys/emulation/linux/linux_socket.c
error = kern_socketpair(domain, linux_args.type, linux_args.protocol,
sockv);
if (error == 0)
if (error == 0) {
error = copyout(sockv, linux_args.rsv, sizeof(sockv));
if (error != 0) {
kern_close(sockv[0]);
kern_close(sockv[1]);
}
}
return(error);
}
    (1-1/1)