Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c9 / 7507ce4ac5721474d220a7235d10f47be170a4
1 Return-Path: <tomi.ollila@nixu.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id E5D88431FD0\r
6         for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 15:32:22 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 97qoU0ManSNg for <notmuch@notmuchmail.org>;\r
16         Thu, 10 Nov 2011 15:32:22 -0800 (PST)\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DB4DE431FB6\r
21         for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 15:32:21 -0800 (PST)\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
23         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
24         pAANWKqw019332\r
25         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 01:32:20 +0200\r
26 From: Tomi Ollila <tomi.ollila@iki.fi>\r
27 To: <notmuch@notmuchmail.org>\r
28 Subject: [PATCH] smtp-dummy: clear sockaddr_in structures before use.\r
29 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1\r
30         (i686-pc-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Fri, 11 Nov 2011 01:32:20 +0200\r
35 Message-ID: <yf6k477a70b.fsf@taco2.nixu.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Thu, 10 Nov 2011 23:32:23 -0000\r
51 \r
52 Any junk bytes in sockaddr_in structures before passing those\r
53 to bind() or accept() functions may cause problems.\r
54 ---\r
55  test/smtp-dummy.c |    2 ++\r
56  1 files changed, 2 insertions(+), 0 deletions(-)\r
57 \r
58 diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c\r
59 index 9da8202..38d1d62 100644\r
60 --- a/test/smtp-dummy.c\r
61 +++ b/test/smtp-dummy.c\r
62 @@ -159,6 +159,7 @@ main (int argc, char *argv[])\r
63                 return 1;\r
64         }\r
65  \r
66 +       memset (&addr, 0, sizeof addr);\r
67         addr.sin_family = AF_INET;\r
68         addr.sin_port = htons (25025);\r
69         addr.sin_addr = *(struct in_addr *) hostinfo->h_addr;\r
70 @@ -178,6 +179,7 @@ main (int argc, char *argv[])\r
71                 return 1;\r
72         }\r
73  \r
74 +       memset (&peer_addr, 0, sizeof peer_addr);\r
75         peer_addr_len = sizeof (peer_addr);\r
76         peer = accept (sock, (struct sockaddr *) &peer_addr, &peer_addr_len);\r
77         if (peer == -1) {\r
78 -- \r
79 1.5.6.5\r
80 \r