From: Howard Chu Date: Wed, 18 May 2005 19:00:30 +0000 (+0000) Subject: Fix ldap_get_option(,LDAP_OPT_SOCKBUF,) X-Git-Tag: OPENLDAP_AC_BP~628 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9b09ecc1f68b5c3ac1bce16cc8a34fa99a4463b;p=openldap Fix ldap_get_option(,LDAP_OPT_SOCKBUF,) --- diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c index 8cf53cd3f9..fae53f0f21 100644 --- a/libraries/libldap/options.c +++ b/libraries/libldap/options.c @@ -166,7 +166,7 @@ ldap_get_option( case LDAP_OPT_SOCKBUF: if( ld == NULL ) break; - outvalue = ld->ld_sb; + *(Sockbuf **)outvalue = ld->ld_sb; return LDAP_OPT_SUCCESS; case LDAP_OPT_TIMEOUT: