Skip to content

avoid ilclient_get_input_buffer failure#342

Open
WireFisher wants to merge 1 commit intoFD-:masterfrom
WireFisher:master
Open

avoid ilclient_get_input_buffer failure#342
WireFisher wants to merge 1 commit intoFD-:masterfrom
WireFisher:master

Conversation

@WireFisher
Copy link

Function ilclient_get_input_buffer will return Null when the third parameter (block)
is 0 and there is temporarily no buffer available in the free list. Calling
ilclient_get_input_buffer with "block" turned-on should prevent the caller from getting
Null pointer repeatedly. Thus, the program won't suffer the "Got NULL buffer" error.

Function `ilclient_get_input_buffer` will return Null when the third parameter (block)
is 0 and there is temporarily no buffer available in the free list. Calling
`ilclient_get_input_buffer` with "block" turned-on should prevent the caller from getting
Null pointer repeatedly. Thus, the program won't suffer the "Got NULL buffer" error.
@WireFisher WireFisher changed the title fix: avoid ilclient_get_input_buffer failure avoid ilclient_get_input_buffer failure Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant