X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fldap_sync.c;h=d8c5b4404944ef8853debc85f1c1977d849c5745;hb=6c1d48aa8d066ff85809b8a544952ad2d1dc3400;hp=6e7cd48084d7fde51d4459f1d440d744447c3e93;hpb=d4124e0e031f5b76a80f9c25a04146d334bcf898;p=openldap diff --git a/libraries/libldap/ldap_sync.c b/libraries/libldap/ldap_sync.c index 6e7cd48084..d8c5b44049 100644 --- a/libraries/libldap/ldap_sync.c +++ b/libraries/libldap/ldap_sync.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2006-2008 The OpenLDAP Foundation. + * Copyright 2006-2010 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -691,7 +691,7 @@ ldap_sync_init( ldap_sync_t *ls, int mode ) rc ? "!!! " : "", rc ); #endif /* LDAP_SYNC_TRACE */ - if ( rc == LBER_ERROR ) { + if ( rc < 0 ) { rc = LDAP_OTHER; goto done; }