diff options
Diffstat (limited to 'net/decnet/af_decnet.c')
-rw-r--r-- | net/decnet/af_decnet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 1b16e7734..04728d5d8 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c @@ -1837,7 +1837,8 @@ static int dn_sendmsg(struct socket *sock, struct msghdr *msg, int size, scp->persist_fxn = dn_nsp_xmit_timeout; while(sent < size) { - if ((err = sock_error(sk) != 0)) + err = sock_error(sk); + if (err) goto out; if (signal_pending(current)) { |