diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-25 18:43:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-25 18:43:07 +0000 |
commit | 7c872ff3d58a3e75682dd2375058903ea233265f (patch) | |
tree | 3fa0c65f7b0a64ace3dba7a0d911d281c8d63601 /src/gnsrecord/plugin_gnsrecord_dns.c | |
parent | 56ac8e5c6628c5f89c538149da966eb52a95b8f2 (diff) | |
download | gnunet-7c872ff3d58a3e75682dd2375058903ea233265f.tar.gz gnunet-7c872ff3d58a3e75682dd2375058903ea233265f.zip |
fix double-free
Diffstat (limited to 'src/gnsrecord/plugin_gnsrecord_dns.c')
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c index 63fdce5f3..532d35d5d 100644 --- a/src/gnsrecord/plugin_gnsrecord_dns.c +++ b/src/gnsrecord/plugin_gnsrecord_dns.c | |||
@@ -488,7 +488,6 @@ dns_string_to_value (void *cls, | |||
488 | GNUNET_free (cert_data); | 488 | GNUNET_free (cert_data); |
489 | return GNUNET_SYSERR; | 489 | return GNUNET_SYSERR; |
490 | } | 490 | } |
491 | GNUNET_free (cert_data); | ||
492 | *data_size = off; | 491 | *data_size = off; |
493 | *data = GNUNET_malloc (off); | 492 | *data = GNUNET_malloc (off); |
494 | memcpy (*data, certbuf, off); | 493 | memcpy (*data, certbuf, off); |