net: ipv4: Using a different API to ensure that IPv4 is enabled
When init_igmp is called the ipv4 pointer was not initialised. Therefore, a different API needs to be used to ensure that IPv4 is enabled when calling init_igmp. Fixes #53913 Signed-off-by: Chamira Perera <chamira.perera@audinate.com>
This commit is contained in:
parent
aef8419e9e
commit
1c51f7cbbf
1 changed files with 2 additions and 2 deletions
|
@ -4162,8 +4162,8 @@ exit:
|
|||
static void init_igmp(struct net_if *iface)
|
||||
{
|
||||
#if defined(CONFIG_NET_IPV4_IGMP)
|
||||
/* Ensure IPv4 is enabled for this interface */
|
||||
if (iface->config.ip.ipv4 == NULL) {
|
||||
/* Ensure IPv4 is enabled for this interface. */
|
||||
if (net_if_config_ipv4_get(iface, NULL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue