<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: gethostbyaddr</title>
	<atom:link href="http://ramblings.narrabilis.com/wp/gethostbyaddr/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramblings.narrabilis.com/wp/gethostbyaddr/</link>
	<description>Scripts, settings, and fixes...</description>
	<lastBuildDate>Fri, 23 Jul 2010 17:37:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Carl Jolly</title>
		<link>http://ramblings.narrabilis.com/wp/gethostbyaddr/comment-page-1/#comment-10830</link>
		<dc:creator>Carl Jolly</dc:creator>
		<pubDate>Fri, 15 Aug 2008 18:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/gethostbyaddr/#comment-10830</guid>
		<description>Mallocing memory for the hostname is unnecessary and will result in a memory leak if someone converts this into a function. The call gethostbyaddr returns a pointer to a static hostent structure that will be overwritten by subsequent calls. Setting hostname equal to the return value of gethostbyaddr will modifiy the value of hostname to point away from the memory you allocated; thus you get a memory leak. Use memcpy to save the contents of the return value to the local struct if required.</description>
		<content:encoded><![CDATA[<p>Mallocing memory for the hostname is unnecessary and will result in a memory leak if someone converts this into a function. The call gethostbyaddr returns a pointer to a static hostent structure that will be overwritten by subsequent calls. Setting hostname equal to the return value of gethostbyaddr will modifiy the value of hostname to point away from the memory you allocated; thus you get a memory leak. Use memcpy to save the contents of the return value to the local struct if required.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
