Author: czeidler Date: 2011-03-13 21:32:45 +0100 (Sun, 13 Mar 2011) New Revision: 40935 Changeset: http://dev.haiku-os.org/changeset/40935 Ticket: http://dev.haiku-os.org/ticket/7267 Modified: haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp Log: Init ssl variables. Replace "/" in temporary filename. This should fix #7267. Modified: haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp =================================================================== --- haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp 2011-03-13 20:01:36 UTC (rev 40934) +++ haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/pop3/pop3.cpp 2011-03-13 20:32:45 UTC (rev 40935) @@ -58,6 +58,8 @@ fSettings = fAccountSettings.InboundSettings().Settings(); #ifdef USE_SSL fUseSSL = (fSettings.FindInt32("flavor") == 1); + fSSL = NULL; + fSSLContext = NULL; #endif if (fSettings.FindString("destination", &fDestinationDir) != B_OK) @@ -177,6 +179,7 @@ BPath path(fDestinationDir); BString fileName = "Downloading file... uid: "; fileName += uid; + fileName.ReplaceAll("/", "_SLASH_"); path.Append(fileName); BEntry entry(path.Path()); BFile file(&entry, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);