commit | 7550fb9bf40a64333fc124c450090bb8346af0b9 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Thu Aug 13 23:09:22 2020 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu Aug 13 23:09:22 2020 -0700 |
tree | 1e6358869e281001ab03d7bb5a11a7386b2e3a77 | |
parent | 15b21c5ba6d2e944f82badfd91b2a1cbc7fd984f [diff] | |
parent | 9b5ebd4c2956eaeeb6219831abccf162fa857768 [diff] |
Merge "[qca-nss-clients] Fix for tunipip6 sysctl crash."
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. */