diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_tlsa.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_tlsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/namestore/plugin_gtk_namestore_tlsa.c b/src/namestore/plugin_gtk_namestore_tlsa.c index 18ac43ac..f4c6ef05 100644 --- a/src/namestore/plugin_gtk_namestore_tlsa.c +++ b/src/namestore/plugin_gtk_namestore_tlsa.c | |||
@@ -842,17 +842,18 @@ import_address_cb (void *cls, | |||
842 | gnutls_certificate_type_t type; | 842 | gnutls_certificate_type_t type; |
843 | gnutls_session_t session; | 843 | gnutls_session_t session; |
844 | 844 | ||
845 | if (GNUNET_YES == ic->done) | ||
846 | return; | ||
845 | if (NULL == addr) | 847 | if (NULL == addr) |
846 | { | 848 | { |
847 | if (GNUNET_YES != ic->done) | 849 | if (GNUNET_YES != ic->done) |
848 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 850 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
849 | _("Name resolution failed\n")); | 851 | _("Name resolution for `%s' failed\n"), |
852 | ic->name); | ||
850 | GNUNET_free (ic->name); | 853 | GNUNET_free (ic->name); |
851 | GNUNET_free (ic); | 854 | GNUNET_free (ic); |
852 | return; | 855 | return; |
853 | } | 856 | } |
854 | if (GNUNET_YES == ic->done) | ||
855 | return; | ||
856 | port = gtk_spin_button_get_value | 857 | port = gtk_spin_button_get_value |
857 | (GTK_SPIN_BUTTON (gtk_builder_get_object (ic->builder, | 858 | (GTK_SPIN_BUTTON (gtk_builder_get_object (ic->builder, |
858 | "edit_dialog_port_spinbutton"))); | 859 | "edit_dialog_port_spinbutton"))); |