ipacm: Fix to not filter_notify request
Make changes to not to send filter_notify request with
0 rules when there are no filter rules installed.
Change-Id: I9306066a3383340057bdb08c913fcc3c8a7264c7
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index 2f18f38..e47767c 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -1124,6 +1124,12 @@
close(fd);
return IPACM_FAILURE;
}
+ if (num_wan_ul_fl_rule_v4 == 0)
+ {
+ IPACMERR("No modem UL rules were installed, return...\n");
+ close(fd);
+ return IPACM_FAILURE;
+ }
if (m_filtering.DeleteFilteringHdls(wan_ul_fl_rule_hdl_v4,
IPA_IP_v4, num_wan_ul_fl_rule_v4) == false)
{