svn rev #18180: trunk/src/util/support/
raeburn@MIT.EDU
raeburn at MIT.EDU
Tue Jun 20 19:59:12 EDT 2006
Commit By: raeburn
Log Message:
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.
Changed Files:
U trunk/src/util/support/fake-addrinfo.c
U trunk/src/util/support/plugins.c
More information about the cvs-krb5
mailing list