reading zero bytes in readNlSock()
Brought to you by:
skarg
In the file bip-init.c, function
static int readNlSock
int sockFd, char *bufPtr, size_t buf_size, int seqNum, int pId)
when reading
do {
/* Receive response from the kernel */
if ((readLen = recv(sockFd, bufPtr, buf_size - msgLen, 0)) < 0) {
perror("SOCK READ: ");
return -1;
}
// Need to check if zero bytes was read and break - this is my fix
if(!readLen) {
break;
}
...
Thank you!
Mikhail
Anonymous
Hi Steve,
I feel flattered. I assume this is a mistake.
Anyway thanks for thinking of me!
Duane
On Thu, Oct 8, 2020 at 11:05 PM Steve Karg skarg@users.sourceforge.net
wrote:
--
Duane L. King - I can Debug Anything
Embedded Software Engineer
Related
Bugs: #72