Return to atomicio.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.18, 2006/04/16 00:52:55 | version 1.19, 2006/04/16 07:59:00 | ||
---|---|---|---|
|
|
||
iovcnt--; | iovcnt--; | ||
} | } | ||
/* This shouldn't happen... */ | /* This shouldn't happen... */ | ||
if (rem > iov[0].iov_len || (rem > 0 && iovcnt <= 0)) { | if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { | ||
errno = EFAULT; | errno = EFAULT; | ||
return 0; | return 0; | ||
} | } |