Fixed bug in canceling TCP ioctls before INET got an IP address.
This commit is contained in:
parent
ba667a0774
commit
1d78f4a203
@ -1308,6 +1308,7 @@ int reply;
|
|||||||
int for_ioctl;
|
int for_ioctl;
|
||||||
{
|
{
|
||||||
acc_t *result;
|
acc_t *result;
|
||||||
|
|
||||||
result= (*tcp_fd->tf_get_userdata)(tcp_fd->tf_srfd, reply,
|
result= (*tcp_fd->tf_get_userdata)(tcp_fd->tf_srfd, reply,
|
||||||
(size_t)0, for_ioctl);
|
(size_t)0, for_ioctl);
|
||||||
assert (!result);
|
assert (!result);
|
||||||
@ -2027,6 +2028,13 @@ int which_operation;
|
|||||||
assert (tcp_fd->tf_flags & TFF_IOCTL_IP);
|
assert (tcp_fd->tf_flags & TFF_IOCTL_IP);
|
||||||
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)
|
switch (tcp_fd->tf_ioreq)
|
||||||
{
|
{
|
||||||
case NWIOGTCPCONF:
|
case NWIOGTCPCONF:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user