summaryrefslogtreecommitdiffstats
path: root/pimd/pim6_cmd.c
diff options
context:
space:
mode:
authorAbhishek N R <abnr@vmware.com>2023-03-30 12:24:49 +0200
committerAbhishek N R <abnr@vmware.com>2023-04-03 13:05:26 +0200
commitb1076c14af9297e6997ab6266e5ac89551475ecb (patch)
tree4d108a9824c73ede1f814070308990716db8c5eb /pimd/pim6_cmd.c
parenttests: [PIMv6] F/W support for multicast mld local join automation (diff)
downloadfrr-b1076c14af9297e6997ab6266e5ac89551475ecb.tar.xz
frr-b1076c14af9297e6997ab6266e5ac89551475ecb.zip
pim6d: Fixing ipv6 mld join cli error
frr(config-if)# ipv6 mld join ffaa::1 Invalid Multicast Address Cli was not accepting valid addresses. Issue: #12822 Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim6_cmd.c')
-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;
}