dnsdist: Prevent EOF error for empty console response w/o sodium #3594

Merged
merged 1 commit into from Mar 20, 2016

Projects

None yet

2 participants

@rgacogne
Member

Prevent the "Fatal error: EOF while reading message" error when
the server sends an empty response to a single console command.
It was caused by calling readn2() for a 0-sized read.
When libsodium support is enabled, padding prevents 0-sized
responses anyway.

@rgacogne rgacogne dnsdist: Prevent EOF error for empty console response w/o sodium
Prevent the "Fatal error: EOF while reading message" error when
the server send an empty response to a single console command.
It was caused by calling `readn2()` for a 0-sized read.
When libsodium support is enabled, padding prevents 0-sized
responses anyway.
e4ef64b
@rgacogne rgacogne added the dnsdist label Mar 18, 2016
@ahupowerdns ahupowerdns merged commit 1bf3b69 into PowerDNS:master Mar 20, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rgacogne rgacogne deleted the rgacogne:dnsdist-single-console-command branch Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment