X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fprint.c;h=bbd21b36e1f99aba83939c6a559f37942db6fd9c;hb=3b9f4a82ee478c943a66696adf9133dc9f503e16;hp=0afe4db43c17864846875f187e2b2a9bb1ec1e01;hpb=29d9fa20a2823c827f098d78f1ea8539d86bf4cf;p=openldap diff --git a/libraries/libldap/print.c b/libraries/libldap/print.c index 0afe4db43c..bbd21b36e1 100644 --- a/libraries/libldap/print.c +++ b/libraries/libldap/print.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -26,7 +26,7 @@ static int ldap_log_check( LDAP *ld, int loglvl ) if(ld == NULL) { errlvl = ldap_debug; } else { - errlvl = ld->ld_errno; + errlvl = ld->ld_debug; } return errlvl & loglvl ? 1 : 0;