]> git.sur5r.net Git - openldap/commitdiff
Fix return of DB error code to LDAP client
authorHoward Chu <hyc@openldap.org>
Thu, 3 Apr 2003 01:59:08 +0000 (01:59 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Apr 2003 01:59:08 +0000 (01:59 +0000)
servers/slapd/back-bdb/modify.c

index 1d60bfe8f7a6fed4b145b50db2b135ec050adeb0..2f1df81bdaf7e4a12ac2b2c6af0b97fee2c4697e 100644 (file)
@@ -384,9 +384,9 @@ retry:      /* transaction retry */
                        goto return_results;
                default:
                        rs->sr_err = LDAP_OTHER;
+                       rs->sr_text = "internal error";
+                       goto return_results;
                }
-               rs->sr_text = "internal error";
-               goto return_results;
        }
 
        /* acquire and lock entry */