svn rev #18225: branches/krb5-1-5/src/util/support/

tlyu@MIT.EDU tlyu at MIT.EDU
Sun Jun 25 23:13:48 EDT 2006


Commit By: tlyu
Log Message: 
ticket: 3911
version_fixed: 1.5

pull up r18180:18182 from trunk

 r18180 at 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 at 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 at 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.
 



Changed Files:
U   branches/krb5-1-5/src/util/support/fake-addrinfo.c



More information about the cvs-krb5 mailing list