]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-passwd/search.c
ITS#3607 add automatic BDB recovery
[openldap] / servers / slapd / back-passwd / search.c
index 239a1ba67b3d6547a519b72511b79d461e2feb8b..ab2c7c1a2262af6289fd10dcf39a556db774de9f 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -143,7 +143,7 @@ passwd_back_search(
                                if ( op->o_abandon ) {
                                        endpwent();
                                        ldap_pvt_thread_mutex_unlock( &passwd_mutex );
-                                       return( -1 );
+                                       return( SLAPD_ABANDON );
                                }
 
                                /* check time limit */