Date: Sun, 7 Feb 2010 16:55:45 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r203612 - stable/7/sbin/ifconfig Message-ID: <201002071655.o17GtjWr078412@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ru Date: Sun Feb 7 16:55:45 2010 New Revision: 203612 URL: http://svn.freebsd.org/changeset/base/203612 Log: MFC: r203486: Shortening a passphrase caused wrong authentication key to be used. Approved by: re (kib) Modified: stable/7/sbin/ifconfig/ifcarp.c Directory Properties: stable/7/sbin/ifconfig/ (props changed) Modified: stable/7/sbin/ifconfig/ifcarp.c ============================================================================== --- stable/7/sbin/ifconfig/ifcarp.c Sun Feb 7 15:42:15 2010 (r203611) +++ stable/7/sbin/ifconfig/ifcarp.c Sun Feb 7 16:55:45 2010 (r203612) @@ -96,6 +96,7 @@ setcarp_passwd(const char *val, int d, i if (ioctl(s, SIOCGVH, (caddr_t)&ifr) == -1) err(1, "SIOCGVH"); + memset(carpr.carpr_key, 0, sizeof(carpr.carpr_key)); /* XXX Should hash the password into the key here, perhaps? */ strlcpy(carpr.carpr_key, val, CARP_KEY_LEN);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002071655.o17GtjWr078412>