Fix bug #3364, segfault in src/wizard.c: add missing return
authorColin Leroy <colin@colino.net>
Wed, 14 Jan 2015 15:46:21 +0000 (16:46 +0100)
committerColin Leroy <colin@colino.net>
Wed, 14 Jan 2015 15:46:21 +0000 (16:46 +0100)
Fix bug #3365, segfault in src/prefs_account.c: add missing return

src/prefs_account.c
src/wizard.c

index 934a1cf..b388c85 100644 (file)
@@ -3848,6 +3848,7 @@ static void auto_configure_cb (GtkWidget *widget, gpointer data)
                g_free(address);
                gtk_label_set_text(GTK_LABEL(basic_page.auto_configure_lbl),
                           _("Failed (wrong address)"));
+               return;
        }
        domain = strchr(address, '@') + 1;
 
index 717bb9f..18505f4 100644 (file)
@@ -1372,6 +1372,7 @@ static void auto_configure_cb (GtkWidget *widget, gpointer data)
                g_free(address);
                gtk_label_set_text(GTK_LABEL(wizard->auto_configure_lbl),
                           _("Failed (wrong address)"));
+               return;
        }
        domain = strchr(address, '@') + 1;