Skip Menu |
 

From: lxs@mit.edu
Subject: SVN Commit
If we don't zero the struct sockaddrs in fai_add_entry() then any sin_zero
fields will be left as random memory and the memcmp() will return that the
addresses are different even if they aren't.

Commit By: lxs



Revision: 19235
Changed Files:
U trunk/src/util/support/fake-addrinfo.c
From: lxs@mit.edu
Subject: SVN Commit
pullup from trunk

------------------------------------------------------------------------
r19235 | lxs | 2007-03-19 16:21:54 -0400 (Mon, 19 Mar 2007) | 9 lines

ticket: new
target_version: 1.6.1
tags: pullup
subject: Zero sockaddrs in fai_add_entry() so we can compare them with memcmp()

If we don't zero the struct sockaddrs in fai_add_entry() then any sin_zero
fields will be left as random memory and the memcmp() will return that the
addresses are different even if they aren't.

------------------------------------------------------------------------

Commit By: lxs



Revision: 19236
Changed Files:
U branches/krb5-1-6/src/util/support/fake-addrinfo.c
Pushed to Tom so he knows about this change.