Commit:     01c8cab25863de007fe8c598d0033919ea8ae65e
Parent:     41684f9547455b395ffd65e5b7961067d20a2872
Author:     Patrick Caulfield <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 16:53:15 2007 +0100
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Tue Aug 14 10:29:27 2007 +0100

    [DLM] zero unused parts of sockaddr_storage
    When we build a sockaddr_storage for an IP address, clear the unused parts 
    they could be used for node comparisons.
    I have seen this occasionally make sctp connections fail.
    Signed-Off-By: Patrick Caulfield <[EMAIL PROTECTED]>
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
 fs/dlm/lowcomms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index d15fd5f..631bc43 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -313,6 +313,7 @@ static void make_sockaddr(struct sockaddr_storage *saddr, 
uint16_t port,
                in6_addr->sin6_port = cpu_to_be16(port);
                *addr_len = sizeof(struct sockaddr_in6);
+       memset((char *)saddr + *addr_len, 0, sizeof(struct sockaddr_storage) - 
 /* Close a remote connection and tidy up */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to