]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8890 fix benign typos
authorThorsten Glaser <tg@debian.org>
Wed, 1 Aug 2018 20:23:48 +0000 (20:23 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 18 Dec 2018 22:56:18 +0000 (22:56 +0000)
No functional impact

clients/tools/common.c
servers/slapd/backend.c
servers/slapd/overlays/constraint.c
servers/slapd/syntax.c

index 14704b235037e3140c4a701b5c353676dba7c88a..0ee5a22b1130218305cfdded23015048dcf40658 100644 (file)
@@ -2631,7 +2631,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? */
                                }
index f62e69e87d76becbc35b4842c9f7e93e5c9f6538..d8a91bc717c5400b61fc5c77033d94160d013c69 100644 (file)
@@ -1570,7 +1570,7 @@ fe_acl_group(
                                         * or if filter parsing fails.
                                         * In the latter case,
                                         * we should give up. */
-                                       if ( ludp->lud_filter != NULL && ludp->lud_filter != '\0') {
+                                       if ( ludp->lud_filter != NULL && *ludp->lud_filter != '\0') {
                                                filter = str2filter_x( op, ludp->lud_filter );
                                                if ( filter == NULL ) {
                                                        /* give up... */
index 75efdb26a738c6031a652287b60ad95abdb9dfb4..c9e7b1511bcd9c5dfc9679aad52b5c2b472a3e20 100644 (file)
@@ -446,7 +446,7 @@ constraint_cf_gen( ConfigArgs *c )
                                                }
 
                                                if ( ap.restrict_lud->lud_attrs != NULL ) {
-                                                       if ( ap.restrict_lud->lud_attrs[0] != '\0' ) {
+                                                       if ( ap.restrict_lud->lud_attrs[0] != NULL ) {
                                                                snprintf( c->cr_msg, sizeof( c->cr_msg ),
                                                                        "%s %s: attrs not allowed in restrict URI %s\n",
                                                                        c->argv[0], c->argv[1], arg);
index 2176bd3bd7e7e4350b62716445d5c74771bc1cb3..308b1c9ab0cb79e33bad237701eeada0bfd7a416 100644 (file)
@@ -219,8 +219,8 @@ syn_add(
                        }
 
                        assert( (*lsei)->lsei_values != NULL );
-                       if ( (*lsei)->lsei_values[0] == '\0'
-                               || (*lsei)->lsei_values[1] != '\0' )
+                       if ( (*lsei)->lsei_values[0] == NULL
+                               || (*lsei)->lsei_values[1] != NULL )
                        {
                                Debug( LDAP_DEBUG_ANY, "syn_add(%s): exactly one substitute syntax must be present\n",
                                        ssyn->ssyn_syn.syn_oid, 0, 0 );