summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pimd/pim6_cmd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c
index 9394e4c15..94e8b874f 100644
--- a/pimd/pim6_cmd.c
+++ b/pimd/pim6_cmd.c
@@ -539,11 +539,8 @@ DEFPY (interface_ipv6_mld_join,
"Source address\n")
{
char xpath[XPATH_MAXLEN];
- struct ipaddr group_addr = {0};
- (void)str2ipaddr(group_str, &group_addr);
-
- if (!IN6_IS_ADDR_MULTICAST(&group_addr)) {
+ if (!IN6_IS_ADDR_MULTICAST(&group)) {
vty_out(vty, "Invalid Multicast Address\n");
return CMD_WARNING_CONFIG_FAILED;
}