summaryrefslogtreecommitdiff
path: root/sbin/iked/config.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-07-05 19:59:01 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-07-05 19:59:01 +0000
commit13f2a1a3586795763adef30659b4253b998b3f11 (patch)
treec4dadfcc88adaece1b3f7f653bbf8b4e1ad5c619 /sbin/iked/config.c
parentd7eb5eab9940ce3ffcb231931e94c94af90983f7 (diff)
fix memcpy sizeof. found by jsg. ok deraadt krw mikeb
Diffstat (limited to 'sbin/iked/config.c')
-rw-r--r--sbin/iked/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/config.c b/sbin/iked/config.c
index f70d0c960c6..b44a00eb3e0 100644
--- a/sbin/iked/config.c
+++ b/sbin/iked/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.12 2011/05/09 11:15:18 reyk Exp $ */
+/* $OpenBSD: config.c,v 1.13 2011/07/05 19:59:00 tedu Exp $ */
/* $vantronix: config.c,v 1.30 2010/05/28 15:34:35 reyk Exp $ */
/*
@@ -366,7 +366,7 @@ config_new_user(struct iked *env, struct iked_user *new)
if ((old = RB_INSERT(iked_users, &env->sc_users, usr)) != NULL) {
/* Update the password of an existing user*/
- memcpy(old, new, sizeof(old));
+ memcpy(old, new, sizeof(*old));
log_debug("%s: updating user %s", __func__, usr->usr_name);
free(usr);