/*
- $Id: ldap.c,v 1.6 2010-04-22 12:08:14 franklahm Exp $
+ $Id: ldap.c,v 1.7 2010-04-23 11:37:06 franklahm Exp $
Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
This program is free software; you can redistribute it and/or modify
int scope,
ldapcon_t conflags,
char **result) {
- int ret = 0;
+ int ret;
int ldaperr;
int retrycount = 0;
int desired_version = LDAP_VERSION3;
/* init LDAP if necessary */
retry:
+ ret = 0;
+
if (!ldapconnected) {
LOG(log_maxdebug, logtype_default, "ldap_getattr_fromfilter_withbase_scope: LDAP server: \"%s\"",
ldap_server);