s3:libads: use the correct struct sockbuf_io_desc type for 'sbiod' pointer
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Feb 2024 16:50:03 +0000 (17:50 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:34 +0000 (23:50 +0000)
Using 'Sockbuf_IO_Desc' in idl implicitly means pidl will use
'struct Sockbuf_IO_Desc', which doesn't exist!

Using 'struct sockbuf_io_desc' which is used in OpenLDAP to
typedef Sockbuf_IO_Desc, we won't need to cast the assign the
'sbiod' pointer.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/sasl_wrapping.c
source3/librpc/idl/ads.idl

index 7a58765007cabdea7b06928d2ddd101f451c7f45..7f0794789486582e81e2e435f4ba74f024ecc528 100644 (file)
@@ -58,7 +58,7 @@ static int ads_saslwrap_setup(Sockbuf_IO_Desc *sbiod, void *arg)
 {
        struct ads_saslwrap *wrap = (struct ads_saslwrap *)arg;
 
-       wrap->sbiod     = (struct Sockbuf_IO_Desc *)sbiod;
+       wrap->sbiod sbiod;
 
        sbiod->sbiod_pvt = wrap;
 
index c42e6784ed26c01ea985f9679b528e4a9d9a2fbc..b7658ca19eaa621008317a24a98d476c45d4f53c 100644 (file)
@@ -93,7 +93,7 @@ interface ads
                ads_saslwrap_type wrap_type;
                [ignore] ads_saslwrap_ops *wrap_ops;
 #ifdef HAVE_LDAP_SASL_WRAPPING
-               [ignore] Sockbuf_IO_Desc *sbiod; /* lowlevel state for LDAP wrapping */
+               [ignore] struct sockbuf_io_desc *sbiod; /* lowlevel state for LDAP wrapping */
 #endif /* HAVE_LDAP_SASL_WRAPPING */
                [ignore] TALLOC_CTX *mem_ctx;
                [ignore] void *wrap_private_data;