summaryrefslogtreecommitdiff
path: root/sbin/ipsec/ipsecadm/xf_ahmd5.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipsec/ipsecadm/xf_ahmd5.c')
-rw-r--r--sbin/ipsec/ipsecadm/xf_ahmd5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsec/ipsecadm/xf_ahmd5.c b/sbin/ipsec/ipsecadm/xf_ahmd5.c
index 4a854778dfe..be0b3e24d09 100644
--- a/sbin/ipsec/ipsecadm/xf_ahmd5.c
+++ b/sbin/ipsec/ipsecadm/xf_ahmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xf_ahmd5.c,v 1.1 1997/03/01 15:08:26 provos Exp $ */
+/* $OpenBSD: xf_ahmd5.c,v 1.2 1997/04/14 10:04:29 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
* (except when noted otherwise).
@@ -77,7 +77,7 @@ char **argv;
em->em_msglen = EMT_SETSPI_FLEN + 4 + klen;
em->em_version = 0;
em->em_type = EMT_SETSPI;
- em->em_spi = htonl(strtol(argv[2], NULL, 16));
+ em->em_spi = htonl(strtoul(argv[2], NULL, 16));
em->em_if = 1;
em->em_dst.s_addr = inet_addr(argv[1]);
em->em_alg = XF_AHMD5;