summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/resolv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/resolv.c b/src/core/resolv.c
index 52ad4b630..b2fbc93d0 100644
--- a/src/core/resolv.c
+++ b/src/core/resolv.c
@@ -56,6 +56,7 @@ int resolv ( const char *name, struct sockaddr *sa, struct async *parent ) {
resolution = malloc ( sizeof ( *resolution ) );
if ( ! resolution )
return -ENOMEM;
+ memset ( resolution, 0, sizeof ( *resolution ) );
async_init ( &resolution->async, &resolv_async_operations, parent );
/* Check for a dotted quad IP address first */