Changeset 2655

Show
Ignore:
Timestamp:
08/31/07 17:09:42
Author:
djcb
Message:

* don't try to disconnect if there is no IAP, as that

would crash libconic

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2654 r2655  
    44                - don't try to normalize to GMT (camel already does that) 
    55                - only use Date: for received if not received date is found 
     6        * don't try to disconnect from conic if the IAP == NULL, as that 
     7          causes a segfault 
    68 
    792007-08-29 Dirk-Jan C. Binnema <dirk-jan.binnema@nokia.com> 
  • trunk/libtinymail-maemo/tny-maemo-conic-device.c

    r2651 r2655  
    2929#include <string.h> /* For strcmp() */ 
    3030 
     31 
    3132#ifdef MAEMO_CONIC_DUMMY  
    3233#include <gtk/gtkmessagedialog.h> 
     
    427428                        return FALSE; 
    428429                } 
    429         } else 
    430                 if (!con_ic_connection_disconnect (priv->cnx)) { 
    431                        g_warning ("could not send disconnect dbus message"); 
    432                        return FALSE; 
    433                
     430        } else { 
     431                /* don't try to disconnect if iap_id==NULL, or conic will crash... */ 
     432                g_warning ("could not send disconnect dbus message"); 
     433                return FALSE; 
     434       
    434435#endif /* MAEMO_CONIC_DUMMY*/ 
    435436