summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-11 03:47:36 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-11 03:47:36 +0000
commit9667f84c94b16d51743bea68df24aeee57bf6f82 (patch)
tree3e4ac798dc26f0fb3c7883c88d83c5e254f08384 /ldap/servers/slapd/back-ldbm/uniqueid2entry.c
parent5a9fd42bc4bfc2ca4a4fad2f10881ea16cf504ea (diff)
downloadds-9667f84c94b16d51743bea68df24aeee57bf6f82.tar.gz
ds-9667f84c94b16d51743bea68df24aeee57bf6f82.tar.xz
ds-9667f84c94b16d51743bea68df24aeee57bf6f82.zip
This one is mostly strcpy/strcat checking, checking for null strings before strlen, removing some dead code, other odds and ends.
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/uniqueid2entry.c')
-rw-r--r--ldap/servers/slapd/back-ldbm/uniqueid2entry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/uniqueid2entry.c b/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
index c743de54..5319d706 100644
--- a/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
+++ b/ldap/servers/slapd/back-ldbm/uniqueid2entry.c
@@ -34,6 +34,7 @@ uniqueid2entry(
#endif
if (e == NULL) {
/* convert dn to entry id */
+ PR_ASSERT(uniqueid);
*err = 0;
idv.bv_val = (void*)uniqueid;
idv.bv_len = strlen( idv.bv_val );