summaryrefslogtreecommitdiffstats
path: root/libipq/libipq.c
diff options
context:
space:
mode:
Diffstat (limited to 'libipq/libipq.c')
-rw-r--r--libipq/libipq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libipq/libipq.c b/libipq/libipq.c
index 709c8a2..a25ad4c 100644
--- a/libipq/libipq.c
+++ b/libipq/libipq.c
@@ -171,6 +171,10 @@ static ssize_t ipq_netlink_recvfrom(const struct ipq_handle *h,
ipq_errno = IPQ_ERR_RECV;
return -1;
}
+ if (h->peer.nl_pid != 0) {
+ ipq_errno = IPQ_ERR_RECV;
+ return -1;
+ }
if (status == 0) {
ipq_errno = IPQ_ERR_NLEOF;
return -1;