Fixed bug in canceling TCP ioctls before INET got an IP address.

This commit is contained in:
Philip Homburg 2006-02-20 14:35:01 +00:00
parent ba667a0774
commit 1d78f4a203

View file

@ -1308,6 +1308,7 @@ int reply;
int for_ioctl;
{
acc_t *result;
result= (*tcp_fd->tf_get_userdata)(tcp_fd->tf_srfd, reply,
(size_t)0, for_ioctl);
assert (!result);
@ -2027,6 +2028,13 @@ int which_operation;
assert (tcp_fd->tf_flags & TFF_IOCTL_IP);
tcp_fd->tf_flags &= ~TFF_IOCTL_IP;
if (tcp_fd->tf_flags & TFF_IOC_INIT_SP)
{
tcp_fd->tf_flags &= ~TFF_IOC_INIT_SP;
reply_thr_put (tcp_fd, EINTR, TRUE);
break;
}
switch (tcp_fd->tf_ioreq)
{
case NWIOGTCPCONF: