]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/dn2id.c
refuse illegal values for "threads" (ITS#4433)
[openldap] / servers / slapd / back-ldbm / dn2id.c
index ae9489a519c67a4e4745a0067a5df825a86108c6..93af8de63225735a6212f4acfff62411db11f30a 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -122,7 +122,7 @@ dn2id(
 
        Debug( LDAP_DEBUG_TRACE, "=> dn2id( \"%s\" )\n", dn->bv_val, 0, 0 );
 
-       assert( idp );
+       assert( idp != NULL );
 
        /* first check the cache */
        *idp = cache_find_entry_ndn2id( be, &li->li_cache, dn );