]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/options.c
ITS#2657: authzid (and assertion) should apply to most everything
[openldap] / libraries / liblber / options.c
index 8294a6f284a42d222671d6ac1755e33091e48aa3..d2371567e706a781d6b6ecc4c063bb26967e2c18 100644 (file)
 #include <ac/stdarg.h>
 #include "lber-int.h"
 
+char ber_pvt_opt_on;   /* used to get a non-NULL address for *_OPT_ON */
+
 struct lber_options ber_int_options = {
-       LBER_UNINITIALIZED, 0, 0 };
+       LBER_UNINITIALIZED, 0, 0, 0 };
 
 int
 ber_get_option(
@@ -211,7 +213,7 @@ ber_set_option(
 
        case LBER_OPT_BER_MEMCTX:
                assert( LBER_VALID( ber ) );
-               ber->ber_memctx = (void *)invalue;
+               ber->ber_memctx = *(void **)invalue;
                return LBER_OPT_SUCCESS;
 
        default: