[gnutls-devel] GnuTLS | Datum.c cleanup (!1002)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri May 24 17:21:20 CEST 2019
Tim Rühsen commented on a discussion on lib/srp.c: https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_174281630
> unsigned int salt_length)
> {
> _gnutls_free_datum(&cred->fake_salt_seed);
> - _gnutls_set_datum(&cred->fake_salt_seed, seed->data, seed->size);
> + if (_gnutls_set_datum(&cred->fake_salt_seed, seed->data, seed->size) < 0) {
Would it be ok to set
```
cred->fake_salt_seed.data = NULL;
cred->fake_salt_seed.size = 0;
cred->fake_salt_length = 0;
```
?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_174281630
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/20190524/8c197516/attachment.html>
More information about the Gnutls-devel
mailing list