diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-10 21:58:20 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-10 21:58:20 +0000 |
commit | 260ca33af7a89b5b91b8e4deee02dc7f901964c6 (patch) | |
tree | 6da91a18f3727a18f6769af3126b27638ea12996 | |
parent | 6ced4b7470ec89f4ce1311627a819458e413334c (diff) |
Big oops for non-IP SubjAltNames -- correct memcpy.
-rw-r--r-- | sbin/isakmpd/apps/certpatch/certpatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/apps/certpatch/certpatch.c b/sbin/isakmpd/apps/certpatch/certpatch.c index 2398652e0b4..1aafbc64e21 100644 --- a/sbin/isakmpd/apps/certpatch/certpatch.c +++ b/sbin/isakmpd/apps/certpatch/certpatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: certpatch.c,v 1.4 1999/10/01 14:08:54 niklas Exp $ */ +/* $OpenBSD: certpatch.c,v 1.5 2000/01/10 21:58:19 angelos Exp $ */ /* $EOM: certpatch.c,v 1.4 1999/09/28 21:26:47 angelos Exp $ */ /* @@ -224,7 +224,7 @@ main (int argc, char **argv) new_id[0] = 0x81; /* IDTYPE_UFQDN */ new_id[1] = strlen (id); - memcpy (data + 2, id, strlen(id)); + memcpy (new_id + 2, id, strlen(id)); #if SSLEAY_VERSION_NUMBER >= 0x00904100L str.length = strlen (id) + 2; str.type = V_ASN1_OCTET_STRING; |