Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363229
b: refs/heads/master
c: 5edf5ee
h: refs/heads/master
i:
  363227: 7f5c107
v: v3
  • Loading branch information
Olaf Hering authored and Greg Kroah-Hartman committed Apr 24, 2013
1 parent fd91366 commit 960276b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb8905b8ff4a887901779504d2ede95dc072bb16
refs/heads/master: 5edf5ee42a4dfbc500e9b9531335305d4c81a129
8 changes: 7 additions & 1 deletion trunk/tools/hv/hv_vss_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,19 @@ int main(void)
len = recvfrom(fd, vss_recv_buffer, sizeof(vss_recv_buffer), 0,
addr_p, &addr_l);

if (len < 0 || addr.nl_pid) {
if (len < 0) {
syslog(LOG_ERR, "recvfrom failed; pid:%u error:%d %s",
addr.nl_pid, errno, strerror(errno));
close(fd);
return -1;
}

if (addr.nl_pid) {
syslog(LOG_WARNING, "Received packet from untrusted pid:%u",
addr.nl_pid);
continue;
}

incoming_msg = (struct nlmsghdr *)vss_recv_buffer;

if (incoming_msg->nlmsg_type != NLMSG_DONE)
Expand Down

0 comments on commit 960276b

Please sign in to comment.