[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)

János Brodbeck notifications at github.com
Wed May 26 18:13:24 CEST 2021


@janosbrodbeck commented on this pull request.



> +        }
+        session_slot->last_used = xtimer_now_usec64();
+    } else {
+        DEBUG("dsm: no space for session to store\n")
+    }
+
+    mutex_unlock(&_lock);
+    return prev_state;
+}
+
+void dsm_remove(sock_dtls_t *sock, sock_dtls_session_t *session)
+{
+    dsm_session_t *session_slot = NULL;
+    mutex_lock(&_lock);
+    if (_find_session(sock, session, &session_slot) == 1) {
+        memset(&session_slot->session, 0 , sizeof(session_slot->session));

Yes, removed the memset.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639883378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210526/ee778b55/attachment.htm>


More information about the notifications mailing list