projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forgotten add.
[apps/madmutt.git]
/
mutt_socket.c
diff --git
a/mutt_socket.c
b/mutt_socket.c
index
2c49da9
..
e5fc1a3
100644
(file)
--- a/
mutt_socket.c
+++ b/
mutt_socket.c
@@
-379,7
+379,7
@@
int raw_socket_open (CONNECTION * conn)
struct addrinfo *cur;
/* we accept v4 or v6 STREAM sockets */
struct addrinfo *cur;
/* we accept v4 or v6 STREAM sockets */
-
memset (&hints, 0, sizeof (hints)
);
+
p_clear(&hints, 1
);
if (option (OPTUSEIPV6))
hints.ai_family = AF_UNSPEC;
if (option (OPTUSEIPV6))
hints.ai_family = AF_UNSPEC;
@@
-439,7
+439,7
@@
int raw_socket_open (CONNECTION * conn)
struct hostent *he;
int i;
struct hostent *he;
int i;
-
memset (&sin, 0, sizeof (sin)
);
+
p_clear(&sin, 1
);
sin.sin_port = htons (conn->account.port);
sin.sin_family = AF_INET;
sin.sin_port = htons (conn->account.port);
sin.sin_family = AF_INET;