--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -645,6 +645,7 @@ static int hostapd_parse_das_client(stru
 	if (secret == NULL)
 		return -1;
 
+	*secret = 0;
 	secret++;
 
 	if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr))
