aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 19dd71a..ae3189f 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -109,7 +109,7 @@ static const struct ipv6_stub_type *ipv6_stub = &ipv6_stub_impl;
#include <net/addrconf.h>
static inline bool ipv6_mod_enabled(void)
{
- return ipv6_stub->udpv6_encap_enable != NULL;
+ return ipv6_stub != NULL && ipv6_stub->udpv6_encap_enable != NULL;
}
#endif