Skip to content

Commit

Permalink
fix #1063 / NetBSD / net_connections: 'continue;' if family is not in…
Browse files Browse the repository at this point in the history
… AF_INET|6 or AF_UNIX
  • Loading branch information
giampaolo committed May 13, 2017
1 parent 89962e2 commit 8b0c184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
- 1046_: [Windows] disk_partitions() on Windows overrides user's SetErrorMode.
- 1047_: [Windows] Process username(): memory leak in case exception is thrown.
- 1050_: [Windows] Process.memory_maps memory() leaks memory.
- 1063_: [NetBSD] net_connections() may list incorrect sockets.

*2017-04-10*

Expand Down
3 changes: 3 additions & 0 deletions psutil/arch/bsd/netbsd_socks.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ psutil_net_connections(PyObject *self, PyObject *args) {
if (! py_raddr)
goto error;
}
else {
continue;
}

// append tuple to list
py_tuple = Py_BuildValue(
Expand Down

0 comments on commit 8b0c184

Please sign in to comment.