From 09a2e74d5ac33661729ce386f17cf712e6804ea7 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Wed, 13 Sep 2000 21:52:50 +0000 Subject: [PATCH] dereference 'char **text' when passing it as an arg to Debug() --- servers/slapd/back-ldbm/modify.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-ldbm/modify.c b/servers/slapd/back-ldbm/modify.c index 114dbb0c62..07a5747b61 100644 --- a/servers/slapd/back-ldbm/modify.c +++ b/servers/slapd/back-ldbm/modify.c @@ -61,7 +61,7 @@ int ldbm_modify_internal( if( err != LDAP_SUCCESS ) { Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n", - err, text, 0); + err, *text, 0); *text = "modify: add values failed"; } break; @@ -72,7 +72,7 @@ int ldbm_modify_internal( assert( err != LDAP_TYPE_OR_VALUE_EXISTS ); if( err != LDAP_SUCCESS ) { Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n", - err, text, 0); + err, *text, 0); *text = "modify: delete values failed"; } break; @@ -83,7 +83,7 @@ int ldbm_modify_internal( assert( err != LDAP_TYPE_OR_VALUE_EXISTS ); if( err != LDAP_SUCCESS ) { Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n", - err, text, 0); + err, *text, 0); *text = "modify: replace values failed"; } break; @@ -102,7 +102,7 @@ int ldbm_modify_internal( if( err != LDAP_SUCCESS ) { Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n", - err, text, 0); + err, *text, 0); *text = "modify: (soft)add values failed"; } break; @@ -113,7 +113,7 @@ int ldbm_modify_internal( *text = "Invalid modify operation"; err = LDAP_OTHER; Debug(LDAP_DEBUG_ARGS, "ldbm_modify_internal: %d %s\n", - err, text, 0); + err, *text, 0); } if ( err != LDAP_SUCCESS ) { -- 2.39.5