aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail-config
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-13 02:33:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-13 02:41:50 +0800
commitedf24cc3dae97d27aea997d71d8263bdb6f135ef (patch)
treeb8241c70323737b7c8b2cbf28ed84d25bf59d0a4 /modules/mail-config
parent8815dac4fe98710aa26abf50cb78111f86a67638 (diff)
downloadgsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar.gz
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar.bz2
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar.lz
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar.xz
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.tar.zst
gsoc2013-evolution-edf24cc3dae97d27aea997d71d8263bdb6f135ef.zip
Bug 703991: Crash when using -fstack-protector-strong.
We were using g_object_get() to write an "unsigned int" value (at least 32 bits) into a 16-bit integer address. Don't know why we were bothering with g_object_get() in the first place, just call camel_network_settings_get_port() instead.
Diffstat (limited to 'modules/mail-config')
-rw-r--r--modules/mail-config/e-mail-config-smtp-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mail-config/e-mail-config-smtp-backend.c b/modules/mail-config/e-mail-config-smtp-backend.c
index 0b823f9eca..0c3d56ba86 100644
--- a/modules/mail-config/e-mail-config-smtp-backend.c
+++ b/modules/mail-config/e-mail-config-smtp-backend.c
@@ -238,8 +238,8 @@ mail_config_smtp_backend_insert_widgets (EMailConfigServiceBackend *backend,
priv->user_entry = widget; /* do not reference */
gtk_widget_show (widget);
- port = 0;
- g_object_get (G_OBJECT (settings), "port", &port, NULL);
+ port = camel_network_settings_get_port (
+ CAMEL_NETWORK_SETTINGS (settings));
g_object_bind_property (
settings, "host",