getaddrinfo code uses vars outside of storage duration
authorKen Raeburn <raeburn@mit.edu>
Tue, 20 Jun 2006 23:59:11 +0000 (23:59 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 20 Jun 2006 23:59:11 +0000 (23:59 +0000)
commitf5f7c801239586dfa38519dac0b46c2b11d0f0d9
tree5ab093e990c41a2d522c7542598242024bf31ac3
parent95d68c2a356ea86513446d24cd46facbcc0c8fef
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.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18180 dc483132-0cff-0310-8789-dd5450dbe970
src/util/support/fake-addrinfo.c
src/util/support/plugins.c