diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-30 11:57:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-30 11:57:28 +0200 |
commit | bc458ee7949e01e0b5a1f7f15773c02be94cb8fa (patch) | |
tree | 3491aafa2f3dc5265145b5d27a2b468b140c50ee /src/gnsrecord | |
parent | f9b0e00a193e735db74f0abe907caf97c7da054b (diff) | |
download | gnunet-bc458ee7949e01e0b5a1f7f15773c02be94cb8fa.tar.gz gnunet-bc458ee7949e01e0b5a1f7f15773c02be94cb8fa.zip |
simplify memory allocation in plugin_namestore_flat, use cleaner signatures for base64 encoding/decoding functions
Diffstat (limited to 'src/gnsrecord')
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c index 188afcae7..254ae15ea 100644 --- a/src/gnsrecord/plugin_gnsrecord_dns.c +++ b/src/gnsrecord/plugin_gnsrecord_dns.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -463,7 +463,7 @@ dns_string_to_value (void *cls, | |||
463 | } | 463 | } |
464 | cert_size = GNUNET_STRINGS_base64_decode (certp, | 464 | cert_size = GNUNET_STRINGS_base64_decode (certp, |
465 | strlen (certp), | 465 | strlen (certp), |
466 | &cert_data); | 466 | (void **) &cert_data); |
467 | GNUNET_free (sdup); | 467 | GNUNET_free (sdup); |
468 | cert.cert_type = type; | 468 | cert.cert_type = type; |
469 | cert.cert_tag = key; | 469 | cert.cert_tag = key; |