Discussion:
[Ipmitool-devel] Code Review - ID: 256 - ipmitool could crash when IPv6 address is returned
Zdenek Styblik
2013-07-13 06:51:48 UTC
Permalink
Hi all,

gethostbyname() can't handle IPv6. Despite this fact it seems worth of
nothing to check whether gethostbyname() really returned AF_INET or
not. And that's what attached patch does, resp. in case IPv6 is
returned then ipmitool shoud/will terminate.

Best regards,
Z.

Loading...