[SSSD] [PATCH] prevent segfault when ldap_uri is misconfigured

Jakub Hrozek jhrozek at redhat.com
Wed Jul 20 08:50:02 UTC 2011


On 07/19/2011 05:15 PM, Jan Zelený wrote:
>> https://fedorahosted.org/sssd/ticket/911
>>
>> [PATCH 1/2] Do not add a NULL host parsed from LDAP URI
>> Do not add a server into fail over in case its host name is NULL. Also
>> fixes a possible memleak in case be_fo_add_server() failed.
>>
>> [PATCH 2/2] Only print server address if one is available
>> The second patch is kinda related. In fail over, it is possible that
>> fo_get_server_hostent() returns NULL in case we did not find any name
>> for the server. Therefore we must check its return value before
>> dereferencing it.
> 
> Nack, there is a compilation error caused by the second patch.
> 
> Jan
> 

Oops, that code should have been in a later patch, bad rebasing.

New patches attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Only-print-server-address-if-one-is-available.patch
Type: text/x-patch
Size: 1059 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110720/b27086b0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-add-a-NULL-host-parsed-from-LDAP-URI.patch
Type: text/x-patch
Size: 1314 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110720/b27086b0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110720/b27086b0/attachment.sig>


More information about the sssd-devel mailing list