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

Fix infinite loop in vnstat.php #30

Merged
merged 1 commit into from Feb 8, 2016
Merged

Fix infinite loop in vnstat.php #30

merged 1 commit into from Feb 8, 2016

Conversation

PhrozenByte
Copy link
Contributor

popen() can return false (something went wrong) or null (e.g. popen() is disabled), what results in a infinite loop when executing while (!feof($fd) {}

`popen()` can return `false` (something went wrong) or `null` (e.g. `popen()` is disabled), what results in a infinite loop when executing `while (!feof($fd) {}`
bjd added a commit that referenced this pull request Feb 8, 2016
Fix infinite loop in vnstat.php
@bjd bjd merged commit bfa2611 into bjd:master Feb 8, 2016
@PhrozenByte PhrozenByte deleted the patch-1 branch February 8, 2016 21:35
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

2 participants