[qca-nss-clients] IP Version check fix

If IP6CB(skb)->flags is set then the existing condition fails.
The patch fixes the issue.

Signed-off-by: Himanshu Joshi <himajosh@codeaurora.org>
Change-Id: Ica19baa4d034c78a2125a2f7e4c7c6d84cae9e25
diff --git a/ipsecmgr/v2.0/plugins/xfrm/nss_ipsec_xfrm.c b/ipsecmgr/v2.0/plugins/xfrm/nss_ipsec_xfrm.c
index 00aebb7..21935a1 100644
--- a/ipsecmgr/v2.0/plugins/xfrm/nss_ipsec_xfrm.c
+++ b/ipsecmgr/v2.0/plugins/xfrm/nss_ipsec_xfrm.c
@@ -533,7 +533,7 @@
 	 */
 	if ((ip_ver == IPVERSION) && (IPCB(skb)->flags & IPSKB_XFRM_TRANSFORMED)) {
 		*type = NSS_DYNAMIC_INTERFACE_TYPE_IPSEC_CMN_OUTER;
-	} else if (IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) {
+	} else if ((ip_ver == 6) && IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) {
 		*type = NSS_DYNAMIC_INTERFACE_TYPE_IPSEC_CMN_OUTER;
 	} else {
 		*type = NSS_DYNAMIC_INTERFACE_TYPE_IPSEC_CMN_INNER;