Merge "[qca-nss-clients] Fix KW issues in DTLS Manager"
diff --git a/dtls/nss_connmgr_dtls_netdev.c b/dtls/nss_connmgr_dtls_netdev.c
index b214878..ab91f7f 100644
--- a/dtls/nss_connmgr_dtls_netdev.c
+++ b/dtls/nss_connmgr_dtls_netdev.c
@@ -202,7 +202,7 @@
  */
 nss_dtlsmgr_status_t nss_dtlsmgr_netdev_destroy(struct nss_dtlsmgr_session *ds)
 {
-	if (!ds && !ds->netdev) {
+	if (!ds || !ds->netdev) {
 		return NSS_DTLSMGR_FAIL;
 	}