Merge "[qca-nss-clients] Enable pppoe over bonding"
diff --git a/tunipip6/nss_connmgr_tunipip6_sysctl.c b/tunipip6/nss_connmgr_tunipip6_sysctl.c
index 659c337..fed8d81 100644
--- a/tunipip6/nss_connmgr_tunipip6_sysctl.c
+++ b/tunipip6/nss_connmgr_tunipip6_sysctl.c
@@ -94,6 +94,11 @@
 		param = strsep(&token, "=");
 		value = token;
 
+		if (!value || !param) {
+			kfree(pfree);
+			goto fail;
+		}
+
 		/*
 		 * Parse netdev and FMR parameters.
 		 */