diff options
Diffstat (limited to 'rfc1035/rfc1035search.c')
| -rw-r--r-- | rfc1035/rfc1035search.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/rfc1035/rfc1035search.c b/rfc1035/rfc1035search.c index 526e7a0..4a484c1 100644 --- a/rfc1035/rfc1035search.c +++ b/rfc1035/rfc1035search.c @@ -238,6 +238,8 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res,  		 0  		}; +	*ptr=NULL; +  	if (nqueries == 0)  		return -1; @@ -261,8 +263,6 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res,  		}  	} -	*ptr=NULL; -  	do // query loop  	{  		if (*ptr) @@ -307,8 +307,6 @@ int rfc1035_resolve_cname_multiple(struct rfc1035_res *res,  			if (good == 0 && cname == 0)  			{ -				rfc1035_replyfree( *ptr ); -				*ptr=0;  				return (-1);  			} | 
