GnuTLS | libdane: A bit of a mix of gnutls_calloc and free (#1787)
Read-only notification of GnuTLS library development activities <[email protected]>
| Newsgroups | gmane.comp.encryption.gpg.gnutls.devel |
|---|---|
| Message-ID | <[email protected]> |
Tim Rühsen created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1787
For example:
```
@@ -196,7 +201,7 @@ int dane_query_to_raw_tlsa(dane_query_t q, unsigned int *data_entries,
*dane_data_len =
gnutls_calloc(q->data_entries + 1, sizeof(**dane_data_len));
if (*dane_data_len == NULL) {
- free(*dane_data);
+ gnutls_free(*dane_data);
*dane_data = NULL;
return DANE_E_MEMORY_ERROR;
}
```
Nothing serious, but better avoid mixing.
Maybe worth a general check for these issues in `libdane/dane.c`.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1787
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Gnutls-devel mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-devel