[PATCH] smtp-dummy: clear sockaddr_in structures before use.

2011-11-11 Thread Austin Clements
Looks good and is the right thing to do. The rest of smtp-dummy uses parens around sizeof operands, but whatever. It's probably not necessary to clear peer_addr, since it's an out-argument of accept and is never used (plus the example in bind(2) doesn't), but there's no harm. Quoth Tomi Ollila

[PATCH] smtp-dummy: clear sockaddr_in structures before use.

2011-11-11 Thread Tomi Ollila
Any junk bytes in sockaddr_in structures before passing those to bind() or accept() functions may cause problems. --- test/smtp-dummy.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 9da8202..38d1d62 100644 ---

[PATCH] smtp-dummy: clear sockaddr_in structures before use.

2011-11-10 Thread Tomi Ollila
Any junk bytes in sockaddr_in structures before passing those to bind() or accept() functions may cause problems. --- test/smtp-dummy.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 9da8202..38d1d62 100644 ---