summaryrefslogtreecommitdiff
path: root/pfinet/linux-inet
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-19 21:09:55 +0000
committerMiles Bader <miles@gnu.org>1997-08-19 21:09:55 +0000
commit3b28208a9d39e1a159f2dedd597557414685206c (patch)
tree2dae4e14cf93ad497c4a19ca88eaf1c70c4cb611 /pfinet/linux-inet
parentb853ef38afb8fb83ab92a83efef27eba01843fc8 (diff)
(tcp_conn_request):
SK->err holds errno values, not linux negative errno return vals.
Diffstat (limited to 'pfinet/linux-inet')
-rw-r--r--pfinet/linux-inet/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pfinet/linux-inet/tcp.c b/pfinet/linux-inet/tcp.c
index 61ebba6c..e4b4005b 100644
--- a/pfinet/linux-inet/tcp.c
+++ b/pfinet/linux-inet/tcp.c
@@ -2870,7 +2870,7 @@ static void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
buff = newsk->prot->wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC);
if (buff == NULL)
{
- sk->err = -ENOMEM;
+ sk->err = ENOMEM;
newsk->dead = 1;
newsk->state = TCP_CLOSE;
/* And this will destroy it */
@@ -2899,7 +2899,7 @@ static void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
if (tmp < 0)
{
- sk->err = tmp;
+ sk->err = -tmp;
buff->free = 1;
kfree_skb(buff,FREE_WRITE);
newsk->dead = 1;