summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/bootparam.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-15 08:08:30 +0000
committerderaadt <deraadt@openbsd.org>1995-12-15 08:08:30 +0000
commit659b81fc91ec0d5828619703e932d045ba37fe67 (patch)
tree76253d37974a7e98b83070bb914e9cababdf816c /sys/lib/libsa/bootparam.c
parentfrom gwr: (diff)
downloadwireguard-openbsd-659b81fc91ec0d5828619703e932d045ba37fe67.tar.xz
wireguard-openbsd-659b81fc91ec0d5828619703e932d045ba37fe67.zip
from gwr
Correct error which caused truncation of port number on i386 (PR#1823)
Diffstat (limited to 'sys/lib/libsa/bootparam.c')
-rw-r--r--sys/lib/libsa/bootparam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/lib/libsa/bootparam.c b/sys/lib/libsa/bootparam.c
index 5aa357fde55..5736b8d4571 100644
--- a/sys/lib/libsa/bootparam.c
+++ b/sys/lib/libsa/bootparam.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bootparam.c,v 1.5 1995/09/23 03:36:07 gwr Exp $ */
+/* $NetBSD: bootparam.c,v 1.6 1995/12/08 04:10:28 gwr Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -107,7 +107,8 @@ bp_whoami(sockfd)
struct xdr_inaddr xina;
} *args;
struct repl {
- u_int32_t port;
+ u_int16_t _pad;
+ u_int16_t port;
u_int32_t encap_len;
/* encapsulated data here */
n_long capsule[64];