From 8a3ac8a0c0a49e37c8f68c737da8eaf193766c5d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 28 Apr 2004 22:51:27 +0000 Subject: FreeBSD fixes --- daemon/ldap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'daemon/ldap.c') 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); -- cgit v1.2.3