Diff for /servers/slapd/filter.c between versions 1.4.2.3 and 1.4.2.4

version 1.4.2.3, 1998/11/16 23:24:28 version 1.4.2.4, 1998/11/29 21:52:35
Line 134  get_filter( Connection *conn, BerElement Line 134  get_filter( Connection *conn, BerElement
                 Debug( LDAP_DEBUG_FILTER, "AND\n", 0, 0, 0 );                  Debug( LDAP_DEBUG_FILTER, "AND\n", 0, 0, 0 );
                 if ( (err = get_filter_list( conn, ber, &f->f_and, &ftmp ))                  if ( (err = get_filter_list( conn, ber, &f->f_and, &ftmp ))
                     == 0 ) {                      == 0 ) {
                         if (ftmp == NULL) ftmp = strdup("");                          if (ftmp == NULL) ftmp = ch_strdup("");
                         *fstr = ch_malloc( 4 + strlen( ftmp ) );                          *fstr = ch_malloc( 4 + strlen( ftmp ) );
                         sprintf( *fstr, "(&%s)", ftmp );                          sprintf( *fstr, "(&%s)", ftmp );
                         free( ftmp );                          free( ftmp );
Line 145  get_filter( Connection *conn, BerElement Line 145  get_filter( Connection *conn, BerElement
                 Debug( LDAP_DEBUG_FILTER, "OR\n", 0, 0, 0 );                  Debug( LDAP_DEBUG_FILTER, "OR\n", 0, 0, 0 );
                 if ( (err = get_filter_list( conn, ber, &f->f_or, &ftmp ))                  if ( (err = get_filter_list( conn, ber, &f->f_or, &ftmp ))
                     == 0 ) {                      == 0 ) {
                         if (ftmp == NULL) ftmp = strdup("");                          if (ftmp == NULL) ftmp = ch_strdup("");
                         *fstr = ch_malloc( 4 + strlen( ftmp ) );                          *fstr = ch_malloc( 4 + strlen( ftmp ) );
                         sprintf( *fstr, "(|%s)", ftmp );                          sprintf( *fstr, "(|%s)", ftmp );
                         free( ftmp );                          free( ftmp );
Line 156  get_filter( Connection *conn, BerElement Line 156  get_filter( Connection *conn, BerElement
                 Debug( LDAP_DEBUG_FILTER, "NOT\n", 0, 0, 0 );                  Debug( LDAP_DEBUG_FILTER, "NOT\n", 0, 0, 0 );
                 (void) ber_skip_tag( ber, &len );                  (void) ber_skip_tag( ber, &len );
                 if ( (err = get_filter( conn, ber, &f->f_not, &ftmp )) == 0 ) {                  if ( (err = get_filter( conn, ber, &f->f_not, &ftmp )) == 0 ) {
                         if (ftmp == NULL) ftmp = strdup("");                          if (ftmp == NULL) ftmp = ch_strdup("");
                         *fstr = ch_malloc( 4 + strlen( ftmp ) );                          *fstr = ch_malloc( 4 + strlen( ftmp ) );
                         sprintf( *fstr, "(!%s)", ftmp );                          sprintf( *fstr, "(!%s)", ftmp );
                         free( ftmp );                          free( ftmp );

Removed from v.1.4.2.3  
changed lines
  Added in v.1.4.2.4


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org