From: Philip Homburg Date: Mon, 1 Aug 2005 14:47:24 +0000 (+0000) Subject: small fix for connect X-Git-Tag: v3.1.0~487 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named.html?a=commitdiff_plain;h=a5b0301024c9c77764b5ef269aec9048913fc1d1;p=minix.git small fix for connect --- diff --git a/lib/ip/connect.c b/lib/ip/connect.c index c0dae5f83..72f1a18cb 100644 --- a/lib/ip/connect.c +++ b/lib/ip/connect.c @@ -120,6 +120,6 @@ static int _udp_connect(int socket, const struct sockaddr *address, udpopt.nwuo_remaddr= sinp->sin_addr.s_addr; udpopt.nwuo_remport= sinp->sin_port; - r= ioctl(socket, NWIOSUDPOPT, &udpopt) == -1) + r= ioctl(socket, NWIOSUDPOPT, &udpopt); return r; }