Red Hat Bugzilla – Bug 436517
rdate frees address info before use.
Last modified: 2015-02-01 17:48:07 EST
Description of problem:
rdate frees up its host address information before it uses it. Depending on how
the allocation is going this can cause segfaults, invalid parameters being
passed to the connect, or if you're lucky it works because the memory hasn't
been overwritten yet.
Version-Release number of selected component (if applicable):
Most easily seen doing
rdate -s server.example.com
in the %post of a kickstart.
Steps to Reproduce:
1. Put an rdate -s in a %post of a kickstart.
Could not connect to host host.example.com Invalid argument
time should be set silently
Created attachment 297223 [details]
patch to move freeing of address info to after use.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.