patch-2.0.5 linux/fs/ncpfs/sock.c

Next file: linux/include/asm-alpha/apecs.h
Previous file: linux/fs/ext2/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.4/linux/fs/ncpfs/sock.c linux/fs/ncpfs/sock.c
@@ -599,7 +599,7 @@
 
 	if (server->has_subfunction != 0)
 	{
-		*(__u16 *)&(h->data[0]) = request_size - 2;
+		*(__u16 *)&(h->data[0]) = htons(request_size - 2);
 	}
 
 	h->type = NCP_REQUEST;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov