pull up r18180:18182 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 26 Jun 2006 03:13:48 +0000 (03:13 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 26 Jun 2006 03:13:48 +0000 (03:13 +0000)
commit5a4a30b9b5747c4ed9a1e70b75c269b81d16972a
treec59209cda57ffc504283468d5bafcaef702b6015
parente7d02468ea79fa536f200f408f297adab1e01021
pull up r18180:18182 from trunk

 r18180@cathode-dark-space:  raeburn | 2006-06-20 19:59:11 -0400
 ticket: new
 subject: getaddrinfo code uses vars outside of storage duration

 The calls to gethostbyname_r and friends were wrapped in macros that declared
 automatic variables for the auxiliary storage needed, but the pointers returned
 by the functions would be used outside of that scope, when the storage would no
 longer be valid.

 Changed the macro interfaces to define new types for the auxiliary storage, and
 add a new argument to the macros referring to that storage.  Changed call sites
 accordingly.

 r18181@cathode-dark-space:  raeburn | 2006-06-20 19:59:56 -0400
 ticket: 18180

 Revert an untested change that wasn't supposed to go into this ticket.

 r18182@cathode-dark-space:  raeburn | 2006-06-20 20:12:03 -0400
 ticket: 3911

 Revert part of previous changes: Move temporary values that don't need
 longer storage duration, like error codes, back into GET_*_BY_* macros.

ticket: 3911
version_fixed: 1.5

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-5@18225 dc483132-0cff-0310-8789-dd5450dbe970
src/util/support/fake-addrinfo.c