summaryrefslogtreecommitdiff
path: root/daemon/ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/ldap.c')
-rw-r--r--daemon/ldap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/ldap.c b/daemon/ldap.c
index a5abd97..78e048f 100644
--- a/daemon/ldap.c
+++ b/daemon/ldap.c
@@ -367,10 +367,11 @@ static const char* find_cleartext_password(ha_buffer_t* buf, const char** pws)
static int parse_ldap_ha1(ha_buffer_t* buf, struct berval* bv, unsigned char* ha1)
{
- ASSERT(buf && bv && ha1);
size_t len;
void* d;
+ ASSERT(buf && bv && ha1);
+
/* Raw binary */
if(bv->bv_len == MD5_LEN)
{
@@ -1328,13 +1329,14 @@ int ldap_inithand(ha_context_t* context)
void ldap_destroy(ha_context_t* context)
{
+ ldap_context_t* ctx;
int i;
if(!context)
return;
/* Note: We don't need to be thread safe here anymore */
- ldap_context_t* ctx = (ldap_context_t*)(context->data);
+ ctx = (ldap_context_t*)(context->data);
ASSERT(ctx);