[gnutls-devel] GnuTLS | pkcs11: Fix macro REPEAT_ON_INVALID_HANDLE (!2134)

(Deprecated) Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Aug 18 11:18:52 CEST 2026



Tim Rühsen created a merge request: https://gitlab.com/gnutls/gnutls/-/merge_requests/2134

Branches: rockdaboot/fix-repeat-on-invalid-handle to master
Author: Tim Rühsen

* pkcs11: Fix macro REPEAT_ON_INVALID_HANDLE

The macro REPEAT_ON_INVALID_HANDLE contained a return, which did not do cleanups
like freeing memory or unlocking mutexes. This leads to memory leaks and even
deadlocks under certain error conditions.

Signed-off-by: Tim Rühsen <tim.ruehsen at gmx.de>

## Checklist
 * [x] Commits have `Signed-off-by:` with name/author being identical to the commit author
 * [ ] Code modified for feature
 * [ ] Test suite updated with functionality tests
 * [ ] Test suite updated with negative tests
 * [ ] Documentation updated / NEWS entry present (for non-trivial changes)

## Reviewer's checklist:
 * [ ] Any issues marked for closing are addressed
 * [ ] There is a test suite reasonably covering new functionality or modifications
 * [ ] Function naming, parameters, return values, types, etc., are consistent and according to `CONTRIBUTION.md`
 * [ ] This feature/change has adequate documentation added
 * [ ] No obvious mistakes in the code

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2134
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/namespace/17175643/sent_notifications/6-es4k966wh2ueq0h0byl0lut0t-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260818/ec657c9d/attachment-0003.html>


More information about the Gnutls-devel mailing list