diff options
author | Stef Walter <stef@memberwebs.com> | 2004-04-28 22:51:27 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-04-28 22:51:27 +0000 |
commit | 8a3ac8a0c0a49e37c8f68c737da8eaf193766c5d (patch) | |
tree | 9da27ac1730725e2332aab0e234f17338804c845 /daemon/ldap.c | |
parent | dbbf162dc9be0aef47f2d1f1fcddb7ae4e074d47 (diff) |
FreeBSD fixes
Diffstat (limited to 'daemon/ldap.c')
-rw-r--r-- | daemon/ldap.c | 6 |
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); |