Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362384
b: refs/heads/master
c: 60085c3
h: refs/heads/master
v: v3
  • Loading branch information
Mathias Krause authored and David S. Miller committed Apr 7, 2013
1 parent 4efc062 commit adeb20a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 4a184233f21645cf0b719366210ed445d1024d72
refs/heads/master: 60085c3d009b0df252547adb336d1ccca5ce52ec
7 changes: 7 additions & 0 deletions trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg)
if (addr) {
addr->family = AF_TIPC;
addr->addrtype = TIPC_ADDR_ID;
memset(&addr->addr, 0, sizeof(addr->addr));
addr->addr.id.ref = msg_origport(msg);
addr->addr.id.node = msg_orignode(msg);
addr->addr.name.domain = 0; /* could leave uninitialized */
Expand Down Expand Up @@ -904,6 +905,9 @@ static int recv_msg(struct kiocb *iocb, struct socket *sock,
goto exit;
}

/* will be updated in set_orig_addr() if needed */
m->msg_namelen = 0;

timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
restart:

Expand Down Expand Up @@ -1013,6 +1017,9 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock,
goto exit;
}

/* will be updated in set_orig_addr() if needed */
m->msg_namelen = 0;

target = sock_rcvlowat(sk, flags & MSG_WAITALL, buf_len);
timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);

Expand Down

0 comments on commit adeb20a

Please sign in to comment.