diff options
| author | Matias Fontanini <matias.fontanini@gmail.com> | 2021-01-04 18:44:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 18:44:06 -0800 |
| commit | cd40b232e737117e3057a80fb5321530f8183b73 (patch) | |
| tree | b747b9b8bb6cee2ed7cf708d9bc2af59766b27d3 | |
| parent | b3d874d6a86e29735818518e8d0d5cf4cc381a82 (diff) | |
| parent | 1166094a2f0e34ed5308f8729cbd7a637e64e5b1 (diff) | |
Merge pull request #427 from nhutchinson-te/bsd-routing-table
Fix infinite loop when querying BSD routing table
| -rw-r--r-- | src/utils/routing_utils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/routing_utils.cpp b/src/utils/routing_utils.cpp index d107de8..191803e 100644 --- a/src/utils/routing_utils.cpp +++ b/src/utils/routing_utils.cpp @@ -154,6 +154,7 @@ vector<char> query_route_table(int family) { throw exception_base("sysctl failed"); } + buf.resize(len); return buf; } |
