diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-12-08 12:51:47 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-12-08 12:51:47 +0000 |
commit | 172b4142502416736a688f42e47b65c422445ef0 (patch) | |
tree | 778850247b3e4b4caf1083bd2526cd02b0abc51c /usr.sbin/ikectl | |
parent | 9b9ea0f72f1ae53c8a14226e337739023eca5c16 (diff) |
don't forget to include a path separator after an SSLDIR;
reported by david hill
Diffstat (limited to 'usr.sbin/ikectl')
-rw-r--r-- | usr.sbin/ikectl/ikeca.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ikectl/ikeca.c b/usr.sbin/ikectl/ikeca.c index c7008b7a4b0..2e2ff550452 100644 --- a/usr.sbin/ikectl/ikeca.c +++ b/usr.sbin/ikectl/ikeca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikeca.c,v 1.23 2012/10/23 14:36:18 reyk Exp $ */ +/* $OpenBSD: ikeca.c,v 1.24 2012/12/08 12:51:46 mikeb Exp $ */ /* $vantronix: ikeca.c,v 1.13 2010/06/03 15:52:52 reyk Exp $ */ /* @@ -816,8 +816,7 @@ ca_setup(char *caname, int create, int quiet, char *pass) err(1, "calloc"); ca->caname = strdup(caname); - strlcpy(ca->sslpath, SSLDIR, sizeof(ca->sslpath)); - strlcat(ca->sslpath, caname, sizeof(ca->sslpath)); + snprintf(ca->sslpath, sizeof(ca->sslpath), SSLDIR "/%s", caname); strlcpy(ca->passfile, ca->sslpath, sizeof(ca->passfile)); strlcat(ca->passfile, "/ikeca.passwd", sizeof(ca->passfile)); |