Kerberos 5 v1.5.1 on AIX 5.2 or AIX 5.3

Marcus Watts mdw at umich.edu
Mon Sep 18 22:44:18 EDT 2006


Lamar.Saxon at americredit.com writes:
> Subject: RE: Kerberos 5 v1.5.1 on AIX 5.2 or AIX 5.3 
> Date: Mon, 18 Sep 2006 21:01:12 -0500
> Message-ID: <FBA40FC9A555684C8E734FD5F281C6530A683FBC at srvexcharl02.acf.americredit.com>
> From: <Lamar.Saxon at americredit.com>
> To: <raeburn at mit.edu>, <mdw at umich.edu>
> Cc: kerberos at mit.edu
> 
> 
> Believe it or not; both solutions seem to work and compilation succeeds
> !

Right.  Take Ken's solution.  He's correct, there's definitely no
guarantee that automatic storage inside the GET_HOST_BY_NAME block will
still be live afterwards.  Also, my fix of just declaring the storage
isn't good enough; that will probably result in calling the library
gethostbyname_r function, ignoring its results, and instead using
uninitialized storage for the result.

Beware: GET_HOST_BY_ADDR right afterwards also has the automatic
storage problem.  (It doesn't have the unitialized storage problem
because it doesn't use TMP at all.)  You probably aren't hitting that
case since you'd most likely get a compiler error from passing the
wrong # of arguments to the macro if you were using it.

				-Marcus



More information about the Kerberos mailing list