diff options
Diffstat (limited to 'sbin/ipsec/sahhmac/sahhmac.c')
-rw-r--r-- | sbin/ipsec/sahhmac/sahhmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsec/sahhmac/sahhmac.c b/sbin/ipsec/sahhmac/sahhmac.c index a0d0f15348c..391eefccbe6 100644 --- a/sbin/ipsec/sahhmac/sahhmac.c +++ b/sbin/ipsec/sahhmac/sahhmac.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); } @@ -91,7 +91,7 @@ char **argv; em->em_msglen = EMT_SETSPI_FLEN + 4 + AHHMACMD5_KMAX; 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_AHHMACMD5; |