diff options
Diffstat (limited to 'libglusterfs/src/common-utils.c')
| -rw-r--r-- | libglusterfs/src/common-utils.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 1be1f81268b..1077f610011 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -90,6 +90,8 @@ gf_resolve_ip6 (const char *hostname,  	if (!*dnscache) {  		*dnscache = GF_CALLOC (1, sizeof (struct dnscache6),                                          gf_common_mt_dnscache6); +                if (!*dnscache) +                        return -1;  	}  	cache = *dnscache;  | 
