[qca-nss-clients] Fix multiple IPsec Tunnel crash

In subnet lookup, Invalid data  was passed to the function to lookup
default subnet mask. Copied the subnet mask before passing
the variable.

Change-Id: I3b068fccd1d8d8bf64029d1b6bd0358e14e83667
Signed-off-by: mandrw <mandrw@codeaurora.org>
diff --git a/ipsecmgr/nss_ipsecmgr_subnet.c b/ipsecmgr/nss_ipsecmgr_subnet.c
index f805dc3..de24319 100644
--- a/ipsecmgr/nss_ipsecmgr_subnet.c
+++ b/ipsecmgr/nss_ipsecmgr_subnet.c
@@ -519,6 +519,8 @@
 		}
 	}
 
+	memcpy(&tmp_key, key, sizeof(struct nss_ipsecmgr_key));
+
 	/*
 	 * normal lookup failed; check default subnet entry
 	 * - clear the destination netmask before lookup
@@ -562,6 +564,8 @@
 		}
 	}
 
+	memcpy(&tmp_key, key, sizeof(struct nss_ipsecmgr_key));
+
 	/*
 	 * normal lookup failed; check default subnet entry
 	 * - clear the destination netmask before lookup