Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 297223 Details for
Bug 436517
rdate frees address info before use.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to move freeing of address info to after use.
rdate-1.4-inet6.patch (text/plain), 1.45 KB, created by
Martin Poole
on 2008-03-07 17:43:08 UTC
(
hide
)
Description:
patch to move freeing of address info to after use.
Filename:
MIME Type:
Creator:
Martin Poole
Created:
2008-03-07 17:43:08 UTC
Size:
1.45 KB
patch
obsolete
>diff -up rdate-1.4/rdate.c.inet6 rdate-1.4/rdate.c >--- rdate-1.4/rdate.c.inet6 2004-04-21 19:44:22.000000000 +0100 >+++ rdate-1.4/rdate.c 2008-03-07 17:28:52.000000000 +0000 >@@ -144,7 +144,6 @@ rdate(const char *hostname, time_t *retv > break; > } > } >- freeaddrinfo(res0); > if (err < 0) { > writeLog(1, "couldn't create socket: %s", strerror(errno)); > return -1; >@@ -160,6 +159,9 @@ rdate(const char *hostname, time_t *retv > { > writeLog(1, "couldn't connect to host %s: %s", hostname, strerror(errno)); > close(fd); >+#ifdef INET6 >+ freeaddrinfo(res0); >+#endif > return -1; > } > >@@ -172,6 +174,9 @@ rdate(const char *hostname, time_t *retv > else > writeLog(1, "got EOF from time server"); > close(fd); >+#ifdef INET6 >+ freeaddrinfo(res0); >+#endif > > return -1; > } >@@ -183,6 +188,9 @@ rdate(const char *hostname, time_t *retv > #endif > writeLog(1, "couldn't send UDP message to host %s: %s", hostname, strerror(errno)); > close(fd); >+#ifdef INET6 >+ freeaddrinfo(res0); >+#endif > return -1; > } > >@@ -197,11 +205,17 @@ rdate(const char *hostname, time_t *retv > else > writeLog(1, "got EOF from time server"); > close(fd); >+#ifdef INET6 >+ freeaddrinfo(res0); >+#endif > return -1; > } > } > > close(fd); >+#ifdef INET6 >+ freeaddrinfo(res0); >+#endif > > /* See inetd's builtins.c for an explanation */ > *retval = (time_t)(ntohl(*(uint32_t *)time_buf) - 2208988800UL);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436517
: 297223