summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-10-16 23:00:41 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-10-16 23:00:41 +0000
commitabffa086e5b230b1d2758941bb841805f7a9dcc0 (patch)
tree42184290d5e867f08a0dba93a517714acf998c19 /sbin
parentc888372424ff2aae5c265501e40c25a3db3bcaae (diff)
getserv* already returns ports in network byteorder
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsecadm/ipsecadm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c
index b68431a8f60..40b79ab8c4b 100644
--- a/sbin/ipsecadm/ipsecadm.c
+++ b/sbin/ipsecadm/ipsecadm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecadm.c,v 1.45 2000/10/09 22:21:41 angelos Exp $ */
+/* $OpenBSD: ipsecadm.c,v 1.46 2000/10/16 23:00:40 niklas Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -1191,7 +1191,7 @@ main(int argc, char **argv)
exit(1);
}
- sport = htons(svp->s_port);
+ sport = svp->s_port;
}
else
sport = htons(atoi(argv[i+1]));
@@ -1213,7 +1213,7 @@ main(int argc, char **argv)
argv[0], argv[i + 1], transportproto);
exit(1);
}
- dport = htons(svp->s_port);
+ dport = svp->s_port;
}
else
dport = htons(atoi(argv[i + 1]));