Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 365078 Details for
Bug 493858
net-nds/ldapvi - ldapvi: error.c:172: ldap_perror: Assertion `ld != ((void *)0)' failed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ldapvi-1.7_p20101214-fix-error-handling.patch
ldapvi-1.7_p20101214-fix-error-handling.patch (text/plain), 1.71 KB, created by
Andrey Volkov
on 2013-12-10 19:52:22 UTC
(
hide
)
Description:
ldapvi-1.7_p20101214-fix-error-handling.patch
Filename:
MIME Type:
Creator:
Andrey Volkov
Created:
2013-12-10 19:52:22 UTC
Size:
1.71 KB
patch
obsolete
>diff --git a/ldapvi/ldapvi.c b/ldapvi/ldapvi.c >index b594327..44c04e2 100644 >--- a/ldapvi/ldapvi.c >+++ b/ldapvi/ldapvi.c >@@ -716,18 +716,18 @@ do_connect(char *server, bind_options *bind_options, > server = url; > } > >- if (ldap_set_option(0, LDAP_OPT_X_TLS_REQUIRE_CERT, (void *) &tls)) >- ldaperr(0, "ldap_set_option(LDAP_OPT_X_TLS)"); > if ( rc = ldap_initialize(&ld, server)) { > fprintf(stderr, "ldap_initialize: %s\n", ldap_err2string(rc)); > exit(1); > } >+ if (LDAP_OPT_SUCCESS != ldap_set_option(ld, LDAP_OPT_X_TLS_REQUIRE_CERT, (void *) &tls)) >+ ldaperr(ld, "ldap_set_option(LDAP_OPT_X_TLS)"); > if (!profileonlyp) > init_sasl_arguments(ld, bind_options); >- if (ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &drei)) >+ if (LDAP_OPT_SUCCESS != ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &drei)) > ldaperr(ld, "ldap_set_option(LDAP_OPT_PROTOCOL_VERSION)"); > if (starttls) >- if (ldap_start_tls_s(ld, 0, 0)) >+ if (LDAP_SUCCESS != ldap_start_tls_s(ld, 0, 0)) > ldaperr(ld, "ldap_start_tls_s"); > if (rebind(ld, bind_options, 1, dir, 0) == -1) { > ldap_unbind_s(ld); >@@ -736,10 +736,10 @@ do_connect(char *server, bind_options *bind_options, > /* after initial bind, always ask interactively (except in '!' rebinds, > * which are special-cased): */ > bind_options->dialog = BD_ALWAYS; >- if (ldap_set_option(ld, LDAP_OPT_REFERRALS, >+ if (LDAP_OPT_SUCCESS != ldap_set_option(ld, LDAP_OPT_REFERRALS, > referrals ? LDAP_OPT_ON : LDAP_OPT_OFF)) > ldaperr(ld, "ldap_set_option(LDAP_OPT_REFERRALS)"); >- if (ldap_set_option(ld, LDAP_OPT_DEREF, (void *) &deref)) >+ if (LDAP_OPT_SUCCESS != ldap_set_option(ld, LDAP_OPT_DEREF, (void *) &deref)) > ldaperr(ld, "ldap_set_option(LDAP_OPT_DEREF)"); > > return ld;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 493858
: 365078