-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try (harder?) to detect the real number of check_interfaces It seems like detecting the number of interfaces a device has is harder than one might think. Apparently those things lie HARD about that. If you then try to allocate memory for the result based on that, but try to write MORE results there, you get a segfault sooner or later. This patch iterates through the answer of the device and just counts them, so this is hopefully the safe way to do this. * Remove suspicious type cast
- Loading branch information
1 parent
f89e531
commit df6392e
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters