From: Howard Chu Date: Wed, 11 Sep 2002 10:59:41 +0000 (+0000) Subject: Fix ITS#2075, NULL moddn->newsup->bv_val X-Git-Tag: NO_SLAP_OP_BLOCKS~986 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7823832770156b11351c73a4188b940b27d5e9aa;p=openldap Fix ITS#2075, NULL moddn->newsup->bv_val --- diff --git a/servers/slapd/repl.c b/servers/slapd/repl.c index 4f0105b3e9..6d0593dfcc 100644 --- a/servers/slapd/repl.c +++ b/servers/slapd/repl.c @@ -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 ); } }