diff --git a/src/core/resolv.c b/src/core/resolv.c index 52ad4b63..b2fbc93d 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 */