Changeset 3773

Show
Ignore:
Timestamp:
09/30/08 11:11:05
Author:
jdapena
Message:

* libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c: added

some code that properly checks the result of the call to
NSS_InitReadWrite (merged from trunk r3720).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/modest/diablo-pe2/ChangeLog

    r3764 r3773  
     12008-09-30  Sergio Villar Senin  <svillar@igalia.com> 
     2 
     3        * libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c: added 
     4        some code that properly checks the result of the call to 
     5        NSS_InitReadWrite (merged from trunk r3720). 
     6 
    172008-09-16  Jose Dapena Paz  <jdapena@igalia.com> 
    28 
  • releases/modest/diablo-pe2/libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c

    r3645 r3773  
    299299                if (!str) 
    300300                        str = g_strdup (g_get_tmp_dir ()); 
    301                 NSS_InitReadWrite (str); 
     301 
     302                if (NSS_InitReadWrite (str) == SECFailure) { 
     303                        /* fall back on using volatile dbs? */ 
     304                        if (NSS_NoDB_Init (str) == SECFailure) { 
     305                                g_warning ("Failed to initialize NSS"); 
     306                                g_free (str); 
     307                                stream->priv->session = NULL; 
     308                                camel_stream_close (stream); 
     309                                camel_object_unref (stream); 
     310                                return NULL; 
     311                        } 
     312                } 
    302313                has_init = TRUE; 
    303314                g_free (str);