Revision 3309 src/syldap.c

View differences:

syldap.c
891 891
	gchar **vals;
892 892
	struct timeval timeout;
893 893

  
894
	if( ldapServer == NULL ) return baseDN;
894 895
	ldapServer->retVal = MGU_BAD_ARGS;
895
	if( ldapServer == NULL ) return baseDN;
896 896
	if( ldapServer->hostName == NULL ) return baseDN;
897 897
	if( ldapServer->port < 1 ) return baseDN;
898 898

  
......
1041 1041
	gboolean retVal = FALSE;
1042 1042
	LDAP *ld;
1043 1043

  
1044
	if( ldapServer == NULL ) return retVal;
1044 1045
	ldapServer->retVal = MGU_BAD_ARGS;
1045
	if( ldapServer == NULL ) return retVal;
1046 1046
	if( ldapServer->hostName == NULL ) return retVal;
1047 1047
	if( ldapServer->port < 1 ) return retVal;
1048 1048
	ldapServer->retVal = MGU_LDAP_INIT;

Also available in: Unified diff