From c3a2101da021abf52d06842598325a6cef6bbc83 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 4 Jan 2006 13:04:43 +0000 Subject: r12714: Fix segfault in pdb_nds.c. Guenther (This used to be commit f78c7f8abea4cb598eca78fa3beacee8a3caee20) --- source3/lib/smbldap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index a3ebe72df2..609816b877 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -664,21 +664,21 @@ int smb_ldap_upgrade_conn(LDAP *ldap_struct, int *new_version) open a connection to the ldap server (just until the bind) ******************************************************************/ -int smb_ldap_setup_full_conn(LDAP *ldap_struct, const char *uri) +int smb_ldap_setup_full_conn(LDAP **ldap_struct, const char *uri) { int rc, version; - rc = smb_ldap_setup_conn(&ldap_struct, uri); + rc = smb_ldap_setup_conn(ldap_struct, uri); if (rc) { return rc; } - rc = smb_ldap_upgrade_conn(ldap_struct, &version); + rc = smb_ldap_upgrade_conn(*ldap_struct, &version); if (rc) { return rc; } - rc = smb_ldap_start_tls(ldap_struct, version); + rc = smb_ldap_start_tls(*ldap_struct, version); if (rc) { return rc; } -- cgit