Skip to content

Commit

Permalink
tipc: Ensure network address change doesn't impact rejected message
Browse files Browse the repository at this point in the history
Revises handling of a rejected message to ensure that a locally
originated message is returned properly even if the node's network
address is changed in mid-operation. The routine now treats the
default node address of <0.0.0> as an alias for "this node" when
determining where to send a returned message.

Signed-off-by: Allan Stephens <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
  • Loading branch information
ajstephens authored and Paul Gortmaker committed Apr 19, 2012
1 parent 8a55fe7 commit 630d920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ int tipc_reject_msg(struct sk_buff *buf, u32 err)
/* send returned message & dispose of rejected message */

src_node = msg_prevnode(msg);
if (src_node == tipc_own_addr)
if (in_own_node(src_node))
tipc_port_recv_msg(rbuf);
else
tipc_link_send(rbuf, src_node, msg_link_selector(rmsg));
Expand Down

0 comments on commit 630d920

Please sign in to comment.