Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40026
b: refs/heads/master
c: eb5959c
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Oct 19, 2006
1 parent 1e9a61d commit 7621004
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 29ede244cc4cfb11432a0bffd158ba09e7b2c167
refs/heads/master: eb5959c2bd290bf6c24ddf6d1f5ebcb496c54adb
7 changes: 6 additions & 1 deletion trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* net/tipc/socket.c: TIPC socket API
*
* Copyright (c) 2001-2006, Ericsson AB
* Copyright (c) 2004-2005, Wind River Systems
* Copyright (c) 2004-2006, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -629,6 +629,9 @@ static int send_stream(struct kiocb *iocb, struct socket *sock,
return -ENOTCONN;
}

if (unlikely(m->msg_name))
return -EISCONN;

/*
* Send each iovec entry using one or more messages
*
Expand All @@ -641,6 +644,8 @@ static int send_stream(struct kiocb *iocb, struct socket *sock,
curr_iovlen = m->msg_iovlen;
my_msg.msg_iov = &my_iov;
my_msg.msg_iovlen = 1;
my_msg.msg_flags = m->msg_flags;
my_msg.msg_name = NULL;
bytes_sent = 0;

while (curr_iovlen--) {
Expand Down

0 comments on commit 7621004

Please sign in to comment.