lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 16 Jul 2016 10:50:06 +0100
From:	Richard Stearn <richard@...-stearn.demon.co.uk>
To:	netdev@...r.kernel.org, linux-hams@...r.kernel.org
Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header
 length.

Subject: [PATCH 1/1]NET:AX25:NETROM Corrects the returned added header length.
Corrects the returned added header length.

Signed-off-by: Richard Stearn <richard@...-stearn.demon.co.uk>
---
 net/netrom/nr_dev.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c
index 988f542..07b9fe4 100644
--- a/net/netrom/nr_dev.c
+++ b/net/netrom/nr_dev.c
@@ -93,9 +93,9 @@ static int nr_header(struct sk_buff *skb, struct net_device *dev,
 	*buff++ = NR_PROTOEXT;
 
 	if (daddr != NULL)
-		return 37;
+		return NR_NETWORK_LEN + NR_TRANSPORT_LEN;
 
-	return -37;
+	return -(NR_NETWORK_LEN + NR_TRANSPORT_LEN);
 }
 
 static int __must_check nr_set_mac_address(struct net_device *dev, void *addr)

Powered by blists - more mailing lists