Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openldap/dist/clients/tools Logical negation bi...



details:   https://anonhg.NetBSD.org/src/rev/370c45bb2415
branches:  trunk
changeset: 818830:370c45bb2415
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Nov 02 13:15:53 2016 +0000

description:
Logical negation binds stronger than bitwise and, which doesn't seem to
be intended here.

diffstat:

 external/bsd/openldap/dist/clients/tools/common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d888d427113c -r 370c45bb2415 external/bsd/openldap/dist/clients/tools/common.c
--- a/external/bsd/openldap/dist/clients/tools/common.c Wed Nov 02 12:51:22 2016 +0000
+++ b/external/bsd/openldap/dist/clients/tools/common.c Wed Nov 02 13:15:53 2016 +0000
@@ -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 @@
                /* 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? */
                                }



Home | Main Index | Thread Index | Old Index