- Fix dns_lookup() crash when trying to lookup unknown name.

This commit is contained in:
2026-10-17 22:25:50 +02:00
parent 8a1ea5fdad
commit 6317958572
3 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.5 - A. GIBERT - 2026/10/17
------------------------------------------------------------------------------------------------------------------------------------
- Fix dns_lookup() crash when trying to lookup unknown name.
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.4 - A. GIBERT - 2026/09/13
------------------------------------------------------------------------------------------------------------------------------------

View File

@@ -24,7 +24,7 @@
%define name network_tools
%define version 1.2.4
%define version 1.2.5
%define release %mkrel 1rx3
%global debug_package %{nil}
@@ -213,6 +213,9 @@ cp www/cgi-bin/*.cgi %{buildroot}%{_webcgi}
#-----------------------------------------------------------------------------------------------------------------------------------
%changelog
* Sat Oct 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.5-1rx3.mga9
- Update to 1.2.4
* Sun Sep 13 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.4-1rx3.mga9
- Update to 1.2.4

View File

@@ -239,7 +239,7 @@ dns_lookup()
case ${dl_type}
in
"A")
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter)"
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter || true)"
;;
"PTR")