* foreachaddr.c (SLOP): New macro.
authorKen Raeburn <raeburn@mit.edu>
Wed, 6 Mar 2002 01:20:45 +0000 (01:20 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 6 Mar 2002 01:20:45 +0000 (01:20 +0000)
commitfb4848dba7869155383e349606e2bc3316d81755
tree575cc58622ae2bcbae73fa6fed26095a5f98302e
parenta6dd61d852237a58a443194d60d51ef65033490b
* foreachaddr.c (SLOP): New macro.
(foreach_localaddr): Use it as the amount of extra space we look for past the
ifreq structures actually filled in.  Add SLOP to the size of the buffer
allocated to hold the ifreq structures.  Place an upper bound on the buffer
size.  Don't crash if the returned ifc_len is larger than the supplied buffer
size.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14226 dc483132-0cff-0310-8789-dd5450dbe970
src/include/ChangeLog
src/include/foreachaddr.c