Module Name: src Committed By: joerg Date: Wed Nov 2 13:15:54 UTC 2016
Modified Files: src/external/bsd/openldap/dist/clients/tools: common.c Log Message: Logical negation binds stronger than bitwise and, which doesn't seem to be intended here. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 \ src/external/bsd/openldap/dist/clients/tools/common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/openldap/dist/clients/tools/common.c diff -u src/external/bsd/openldap/dist/clients/tools/common.c:1.4 src/external/bsd/openldap/dist/clients/tools/common.c:1.5 --- src/external/bsd/openldap/dist/clients/tools/common.c:1.4 Wed May 28 10:12:43 2014 +++ src/external/bsd/openldap/dist/clients/tools/common.c Wed Nov 2 13:15:53 2016 @@ -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? */ }