diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2010-02-07 16:55:45 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2010-02-07 16:55:45 +0000 |
| commit | 93524e051677848780d69647a4376e49b8f04211 (patch) | |
| tree | d61c82ba74a5f18b19728adb9a834436fd4c0dda | |
| parent | f53fd5963e5a5e88ae92063da0ed6b9dea68c738 (diff) | |
Notes
| -rw-r--r-- | sbin/ifconfig/ifcarp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifcarp.c b/sbin/ifconfig/ifcarp.c index 36f1bb6a47b7..2306717e63b8 100644 --- a/sbin/ifconfig/ifcarp.c +++ b/sbin/ifconfig/ifcarp.c @@ -96,6 +96,7 @@ setcarp_passwd(const char *val, int d, int s, const struct afswtch *afp) 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); |
