]> git.sur5r.net Git - openldap/blobdiff - libraries/librewrite/ldapmap.c
Kludge for MSAD (ITS#4391 and others)
[openldap] / libraries / librewrite / ldapmap.c
index 523d5c5cbd79b77f9159194c0c2b389e395df162..ab566306e6e3f65451f92b47ee40b90d0f2707dc 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2003 The OpenLDAP Foundation.
+ * Copyright 2000-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -19,6 +19,7 @@
 
 #include <portable.h>
 
+#define LDAP_DEPRECATED 1
 #include "rewrite-int.h"
 #include "rewrite-map.h"
 
@@ -338,8 +339,8 @@ map_ldap_destroy(
 {
        struct ldap_map_data *data;
 
-       assert( pmap );
-       assert( *pmap );
+       assert( pmap != NULL );
+       assert( *pmap != NULL );
        
        data = ( struct ldap_map_data * )(*pmap)->lb_private;