summaryrefslogtreecommitdiff
path: root/pfinet/linux-inet/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet/linux-inet/tcp.c')
-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;