aboutsummaryrefslogtreecommitdiff
path: root/src/syldap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-11-28 07:53:47 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-11-28 07:53:47 +0000
commitdb86c203b75aa4863021aaa2a409f90ee97fb934 (patch)
tree2682abc0653397805569fce446da6fa4ec7f3619 /src/syldap.c
parenta597ecafa00e4e41c18de39003967556b0eb472d (diff)
more null-checking.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3309 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/syldap.c')
-rw-r--r--src/syldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syldap.c b/src/syldap.c
index dd46b5ca..6c609ad0 100644
--- a/src/syldap.c
+++ b/src/syldap.c
@@ -891,8 +891,8 @@ GList *syldap_read_basedn( SyldapServer *ldapServer ) {
gchar **vals;
struct timeval timeout;
- ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer == NULL ) return baseDN;
+ ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer->hostName == NULL ) return baseDN;
if( ldapServer->port < 1 ) return baseDN;
@@ -1041,8 +1041,8 @@ gboolean syldap_test_connect( SyldapServer *ldapServer ) {
gboolean retVal = FALSE;
LDAP *ld;
- ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer == NULL ) return retVal;
+ ldapServer->retVal = MGU_BAD_ARGS;
if( ldapServer->hostName == NULL ) return retVal;
if( ldapServer->port < 1 ) return retVal;
ldapServer->retVal = MGU_LDAP_INIT;