From 1d7b12613055116a2594c39119a12ddcbf03aad4 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 2 Nov 2016 13:15:53 +0000 Subject: [PATCH] Logical negation binds stronger than bitwise and, which doesn't seem to be intended here. --- external/bsd/openldap/dist/clients/tools/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/bsd/openldap/dist/clients/tools/common.c b/external/bsd/openldap/dist/clients/tools/common.c index d39ae3fd7a80..5ec4255f8d5d 100644 --- a/external/bsd/openldap/dist/clients/tools/common.c +++ b/external/bsd/openldap/dist/clients/tools/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.4 2014/05/28 10:12:43 tron Exp $ */ +/* $NetBSD: common.c,v 1.5 2016/11/02 13:15:53 joerg Exp $ */ /* common.c - common routines for the ldap client tools */ /* $OpenLDAP$ */ @@ -2330,7 +2330,7 @@ void tool_print_ctrls( /* known controls */ for ( j = 0; tool_ctrl_response[j].oid != NULL; j++ ) { if ( strcmp( tool_ctrl_response[j].oid, ctrls[i]->ldctl_oid ) == 0 ) { - if ( !tool_ctrl_response[j].mask & tool_type ) { + if ( !(tool_ctrl_response[j].mask & tool_type) ) { /* this control should not appear * with this tool; warning? */ }