]> git.sur5r.net Git - openldap/commitdiff
Check for slapi_filter_dup() success in nested filters
authorLuke Howard <lukeh@openldap.org>
Thu, 30 Jan 2003 13:07:18 +0000 (13:07 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 30 Jan 2003 13:07:18 +0000 (13:07 +0000)
servers/slapd/slapi/slapi_utils.c

index 9a528c44503d11f38758818cb8fd36e3e5cea6b7..2fad26eec97ae0ef97996382a353d0e2a0f1479f 100644 (file)
@@ -1401,6 +1401,8 @@ slapi_filter_dup( Slapi_Filter *filter )
                      pFilter = pFilter->f_next, ppF = &f->f_next )
                {
                        *ppF = slapi_filter_dup( pFilter );
+                       if ( *ppF == NULL )
+                               break;
                }
                break;
        }