diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-07-10 14:15:16 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-07-10 14:15:16 +0530 |
commit | d62aa75af1941fca6f07e107afc447b7b248e340 (patch) | |
tree | a1864dfb0d666f1d9136fe644022e1c213ca60c5 /ChangeLog | |
parent | 7000d82e01dc04344eaa1772698c9b0c304a892f (diff) | |
download | glibc-d62aa75af1941fca6f07e107afc447b7b248e340.tar.gz glibc-d62aa75af1941fca6f07e107afc447b7b248e340.tar.xz glibc-d62aa75af1941fca6f07e107afc447b7b248e340.zip |
Fix crash when system has no ipv6 address [BZ #17125]
Here's an updated patch to fix the crash in bug-ga2 when the system has no configured ipv6 address. I have taken a different approach of using libc_freeres_fn instead of the libc_freeres_ptr since the former gives better control over what is freed; we need that since cache may or may not be allocated using malloc. Verified that bug-ga2 works correctly in both cases and does not have memory leaks in either of them.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index f5b5599486..72e9cf9e28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2014-07-10 Siddhesh Poyarekar <siddhesh@redhat.com> + [BZ #17125] + * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use + libc_freeres_ptr. + (freecache): New function to free CACHE on exit. + * sunrpc/xdr.c (xdr_string): Add comment about SIZE initialization. |