[gnutls-devel] GnuTLS | Datum.c cleanup (!1002)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 27 11:21:52 CEST 2019




Now set `cred->fake_salt_length = 0` in case of an error. `cred->fake_salt_seed` is in this case initialized to `{ NULL, 0 }` (from the call to `_gnutls_free_datum()`.

So in case of an error, everything is initialized `as good as possible` - plus we see a log entry via `gnutls_assert()`. I think this is the best we can do without changing the ABI (return type void -> int).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_174778438
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190527/933baeac/attachment.html>


More information about the Gnutls-devel mailing list