[Freeipa-devel] ipa-kpasswd: segfault on startup
Rob Crittenden
rcritten at redhat.com
Tue Jul 22 18:45:30 UTC 2008
Frank Botte wrote:
> Hi list,
>
> while playing around with free-ipa i had the problem, that ipa-kpasswd kept segfaulting on startup.
> The problem started when i accidentally added a user that was already in the local userbase (/etc/passwd)
>
> After poking around a little bit in the code i found out the following:
>
> In line 1297 of ipa-kpasswd.c starts a for-loop that goes through a linked list of 'ifaddrs'. On my system one
> of those ifaddrs contains a NULL pointer for 'tifa->ifa_addr' and this is where ipa-kapasswd segfaults.
>
> I fixed the problem for me by simply checking if tifa->ifa_addr is a valid pointer (see patch)
>
> I have no clue if this is just some weirdness in my system or if this is a real problem, so can somebody
> with more knowledge please review my patch and include it if appropriate
>
> bye
> Frank
>
Thanks for the patch.
This is fixed in our source tip already, someone reported it in our IRC
channel (#freeipa) last week (you perhaps?)
It will be contained when we do our next release (no concrete plans on
when that will be at the moment).
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080722/1132c03c/attachment.bin>
More information about the Freeipa-devel
mailing list