]> git.sur5r.net Git - openldap/commitdiff
dereference 'char **text' when passing it as an arg to Debug()
authorBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:52:50 +0000 (21:52 +0000)
committerBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:52:50 +0000 (21:52 +0000)
servers/slapd/back-ldbm/modify.c

index 114dbb0c626f849137d27100f2097a70b19e60ef..07a5747b612e4aefabc09517c18f6d717a1e0dd6 100644 (file)
@@ -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 ) {