Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315814
b: refs/heads/master
c: 06b6a1c
h: refs/heads/master
v: v3
  • Loading branch information
Weiping Pan authored and David S. Miller committed Jul 23, 2012
1 parent a43295f commit 338b808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b3e7e6cb5771bedda51cdb6f715d1da8cd9e644
refs/heads/master: 06b6a1cf6e776426766298d055bb3991957d90a7
3 changes: 3 additions & 0 deletions trunk/net/rds/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ int rds_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,

rdsdebug("size %zu flags 0x%x timeo %ld\n", size, msg_flags, timeo);

msg->msg_namelen = 0;

if (msg_flags & MSG_OOB)
goto out;

Expand Down Expand Up @@ -485,6 +487,7 @@ int rds_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
sin->sin_port = inc->i_hdr.h_sport;
sin->sin_addr.s_addr = inc->i_saddr;
memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
msg->msg_namelen = sizeof(*sin);
}
break;
}
Expand Down

0 comments on commit 338b808

Please sign in to comment.