found by jsg.

Index: config.c
===================================================================
RCS file: /home/tedu/cvs/src/sbin/iked/config.c,v
retrieving revision 1.12
diff -u -p -r1.12 config.c
--- config.c    9 May 2011 11:15:18 -0000       1.12
+++ config.c    5 Jul 2011 18:23:17 -0000
@@ -366,7 +366,7 @@ config_new_user(struct iked *env, struct
 
        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);

Reply via email to