summaryrefslogtreecommitdiff
path: root/sbin/ipsec/ipsecadm/xf_esp3desmd5.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-04-14 10:05:12 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-04-14 10:05:12 +0000
commit242ab3cff4db861d0a03dc5e4757eac597dfd287 (patch)
tree6993490f6ae5f926b14d7c9fb5b21088be0bf3c6 /sbin/ipsec/ipsecadm/xf_esp3desmd5.c
parent088760fe8ccb5c15574756d27d7fef23721d30f9 (diff)
strtol to strtoul
Diffstat (limited to 'sbin/ipsec/ipsecadm/xf_esp3desmd5.c')
-rw-r--r--sbin/ipsec/ipsecadm/xf_esp3desmd5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsec/ipsecadm/xf_esp3desmd5.c b/sbin/ipsec/ipsecadm/xf_esp3desmd5.c
index 27716da4a8f..489f6bd6370 100644
--- a/sbin/ipsec/ipsecadm/xf_esp3desmd5.c
+++ b/sbin/ipsec/ipsecadm/xf_esp3desmd5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xf_esp3desmd5.c,v 1.1 1997/03/01 15:08:27 provos Exp $ */
+/* $OpenBSD: xf_esp3desmd5.c,v 1.2 1997/04/14 10:04:31 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
* (except when noted otherwise).
@@ -75,7 +75,7 @@ char **argv;
em->em_msglen = EMT_SETSPI_FLEN + ESP3DESMD5_ULENGTH;
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_ESP3DESMD5;