diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-29 02:54:21 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-29 02:54:21 +0000 |
commit | 54425a9faac7fbdbf777605404a9a8e35359eb1d (patch) | |
tree | b6042ccf95c19c15ba7cdd99ee4a6524d9672a94 /usr.sbin/ldapd | |
parent | 109d52871f6bec4a3ddad1627fbb0a92f91df432 (diff) |
don't overwrite the return code from validate_entry
Diffstat (limited to 'usr.sbin/ldapd')
-rw-r--r-- | usr.sbin/ldapd/modify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/modify.c b/usr.sbin/ldapd/modify.c index 79921dd14c2..12507c276d3 100644 --- a/usr.sbin/ldapd/modify.c +++ b/usr.sbin/ldapd/modify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modify.c,v 1.4 2010/06/29 02:45:46 martinh Exp $ */ +/* $OpenBSD: modify.c,v 1.5 2010/06/29 02:54:20 martinh Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se> @@ -125,7 +125,7 @@ ldap_add(struct request *req) namespace_abort(ns); if (rc == LDAP_SUCCESS && errno == EEXIST) rc = LDAP_ALREADY_EXISTS; - else + else if (rc == LDAP_SUCCESS) rc = LDAP_OTHER; } else if (namespace_commit(ns) != 0) rc = LDAP_OTHER; |