check "result" in dup_all()

Ralph Dolmans ralph at nlnetlabs.nl
Thu Mar 29 08:03:17 UTC 2018


Yes absolutely, thanks!

On 28-03-18 18:46, Florian Obser via Unbound-users wrote:
> diff --git services/authzone.c services/authzone.c
> index 13e36b2c..fac8e4ed 100644
> --- services/authzone.c
> +++ services/authzone.c
> @@ -5946,7 +5946,7 @@ static char*
>  dup_all(char* str)
>  {
>  	char* result = strdup(str);
> -	if(!str) {
> +	if(!result) {
>  		log_err("malloc failure");
>  		return NULL;
>  	}
> 
> 



More information about the Unbound-users mailing list