Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid ilclient_get_input_buffer failure #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant