check "result" in dup_all()

Florian Obser florian at openbsd.org
Wed Mar 28 16:46:08 UTC 2018


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;
 	}


-- 
I'm not entirely sure you are real.



More information about the Unbound-users mailing list