]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2075, NULL moddn->newsup->bv_val
authorHoward Chu <hyc@openldap.org>
Wed, 11 Sep 2002 10:59:41 +0000 (10:59 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 11 Sep 2002 10:59:41 +0000 (10:59 +0000)
servers/slapd/repl.c

index 4f0105b3e96c0672436a22046f1a502a4d47722d..6d0593dfccd56a4a4ac11609b13cc7c9986b9bfa 100644 (file)
@@ -371,7 +371,8 @@ replog1(
                fprintf( fp, "changetype: modrdn\n" );
                fprintf( fp, "newrdn: %s\n", moddn->newrdn->bv_val );
                fprintf( fp, "deleteoldrdn: %d\n", moddn->deloldrdn ? 1 : 0 );
-               if( moddn->newsup != NULL ) {
+               /* moddn->newsup is never NULL, see modrdn.c */
+               if( moddn->newsup->bv_val != NULL ) {
                        fprintf( fp, "newsuperior: %s\n", moddn->newsup->bv_val );
                }
        }