From: Ben Collins Date: Wed, 13 Sep 2000 21:52:50 +0000 (+0000) Subject: dereference 'char **text' when passing it as an arg to Debug() X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2016 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09a2e74d5ac33661729ce386f17cf712e6804ea7;p=openldap dereference 'char **text' when passing it as an arg to Debug() --- 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 ) {