summaryrefslogtreecommitdiff
path: root/sbin/ipsec/sesp/sesp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipsec/sesp/sesp.c')
-rw-r--r--sbin/ipsec/sesp/sesp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsec/sesp/sesp.c b/sbin/ipsec/sesp/sesp.c
index cf130f36568..2adff69fff7 100644
--- a/sbin/ipsec/sesp/sesp.c
+++ b/sbin/ipsec/sesp/sesp.c
@@ -62,7 +62,7 @@ int x2i(char *s)
ss[1] = s[1];
ss[2] = 0;
- return strtol(ss, NULL, 16);
+ return strtoul(ss, NULL, 16);
}
@@ -89,7 +89,7 @@ char **argv;
em->em_msglen = EMT_SETSPI_FLEN + ESP_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_ESPDES;