From 7823832770156b11351c73a4188b940b27d5e9aa Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 11 Sep 2002 10:59:41 +0000 Subject: [PATCH] Fix ITS#2075, NULL moddn->newsup->bv_val --- servers/slapd/repl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } } -- 2.39.5