diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2013-04-22 05:27:13 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2013-04-22 05:27:13 +0000 |
| commit | e1d6379074e3ce5333cae8a2fc0b69267a9378a0 (patch) | |
| tree | 56f695f34c88e17cbb886473e634252c3ae38570 /sbin/etherswitchcfg | |
| parent | e14ddd1f16e7e5788392c50de21ea7c927e0690c (diff) | |
Notes
Diffstat (limited to 'sbin/etherswitchcfg')
| -rw-r--r-- | sbin/etherswitchcfg/etherswitchcfg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/etherswitchcfg/etherswitchcfg.c b/sbin/etherswitchcfg/etherswitchcfg.c index ea2cec8bd7e7..b7ee02c5fd11 100644 --- a/sbin/etherswitchcfg/etherswitchcfg.c +++ b/sbin/etherswitchcfg/etherswitchcfg.c @@ -139,6 +139,7 @@ set_port_vlangroup(struct cfg *cfg, char *argv[]) v = strtol(argv[1], NULL, 0); if (v < 0 || v >= cfg->info.es_nvlangroups) errx(EX_USAGE, "vlangroup must be between 0 and %d", cfg->info.es_nvlangroups-1); + bzero(&p, sizeof(p)); p.es_port = cfg->unit; if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0) err(EX_OSERR, "ioctl(IOETHERSWITCHGETPORT)"); |
