diff options
Diffstat (limited to 'camel/camel-remote-store.c')
-rw-r--r-- | camel/camel-remote-store.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c index 601d5bc4c1..5d1b762fbb 100644 --- a/camel/camel-remote-store.c +++ b/camel/camel-remote-store.c @@ -218,13 +218,8 @@ remote_connect (CamelService *service, CamelException *ex) if (service->url->port) port = service->url->port; - else { - CamelProvider *prov = camel_service_get_provider (service); - - port = prov->default_ports[CAMEL_PROVIDER_STORE]; - g_assert (port); /* a remote service MUST define a valid default port */ - } - + else + port = store->default_port; sin.sin_port = htons (port); memcpy (&sin.sin_addr, h->h_addr, sizeof (sin.sin_addr)); |