[exim-dev] [Bug 230] A number of LDAP-related things

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Adam
日付:  
To: exim-dev
題目: [exim-dev] [Bug 230] A number of LDAP-related things
------- You are receiving this mail because: -------
You are the QA contact for the bug.

http://bugs.exim.org/show_bug.cgi?id=230




--- Comment #13 from Adam <adam@???> 2011-03-22 10:48:46 ---
After doing a little research on the Internet, I guess you're right.
The call should be written as:

        ldap_set_option(ld, LDAP_OPT_X_TLS_REQUIRE_CERT, &cert_option);


Cheers :)
Adam


> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
> http://bugs.exim.org/show_bug.cgi?id=230
>
> Phil Pennock <pdp@???> changed:
>
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |adam@???
>             Status|RESOLVED                    |REOPENED
>         Resolution|FIXED                       |

>
>
>
>
> --- Comment #11 from Phil Pennock <pdp@???> 2011-03-22 10:32:49 ---
> Adam,
>
> When compiling with clang, I got a warning about parameter mismatch for the
> call to ldap_set_option() in the LDAP_OPT_X_TLS_REQUIRE_CERT case. It looks
> like a legitimate complaint.
>
> ldap_set_option(ld, LDAP_OPT_X_TLS_REQUIRE_CERT, cert_option);
>
> Shouldn't that be &cert_option ?
>
> The code certainly appears to work as-is, but I don't know why: an arbitrary
> bit-pattern shouldn't be a dereferenceable pointer. Or is this call correct
> and OpenLDAP's documentation just not covering this case?
>
> Thanks,
> -Phil
>
>
> --
> Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email