]> git.sur5r.net Git - openldap/commitdiff
Add dummy reference to librewrite to force it to link
authorHoward Chu <hyc@openldap.org>
Sat, 17 Sep 2005 00:55:50 +0000 (00:55 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 17 Sep 2005 00:55:50 +0000 (00:55 +0000)
servers/slapd/saslauthz.c

index 335ae6384383890367ba754ff1d727da232f6dfe..d2d2facdad463f010490fff1a4da1d61ddec357a 100644 (file)
@@ -1397,6 +1397,12 @@ int slap_sasl_regexp_config( const char *match, const char *replace )
                "SASL match pattern %s could not be compiled by regexp engine\n",
                reg->sr_match, 0, 0 );
 
+#ifdef ENABLE_REWRITE
+       /* Dummy block to force symbol references in librewrite */
+       if ( slapMode == ( SLAP_SERVER_MODE|SLAP_TOOL_MODE )) {
+               rewrite_info_init( 0 );
+       }
+#endif
                return( LDAP_OTHER );
        }