[EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Cc: kerberos@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 ________________________________________________ Kerberos mailing list Kerberos@mit.edu https://mailman.mit.edu/mailman/listinfo/kerberos