[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: SLAPD crash (ITS#2330)



This has already been fixed in CVS. The fix for 2.1.13 is simple:

diff -u -r1.50.2.8 schema_check.c
--- schema_check.c      9 Feb 2003 16:31:37 -0000       1.50.2.8
+++ schema_check.c      26 Feb 2003 22:11:12 -0000
@@ -252,14 +252,14 @@
                        if ( attr == NULL ) {
                                snprintf( textbuf, textlen,
                                        "naming attribute '%s' is not present
in entry",
-                                       ava->la_attr );
+                                       ava->la_attr.bv_val );
                                return LDAP_NO_SUCH_ATTRIBUTE;
                        }

                        if ( value_find( desc, attr->a_vals, &ava->la_value )
!= 0 ) {
                                snprintf( textbuf, textlen,
                                        "value of naming attribute '%s' is
not present in entry",
-                                       ava->la_attr );
+                                       ava->la_attr.bv_val );
                                return LDAP_NO_SUCH_ATTRIBUTE;
                        }
                }


  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
Tomasz.NowakTN@telekomunikacja.pl

>
> Full_Name: Tomasz Nowak
> Version: 2.1.13
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (217.98.240.230)
>
>
> Hi,
>   I found a strange behavior when trying to add this entry to
> my directory:
>
> dn: o=unix
> objectClass: top
> objectClass: organization
> o: notunix
>
>
> During loading this entry to my database slapd deamon
> crash(segmentation fault)