mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gthreadedresolver: Don’t warn on unrecognised record types
Otherwise the code isn’t forwards-compatible, and may be DOSed by servers returning unknown records, if `G_DEBUG=fatal-warnings` is enabled for some reason. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -780,7 +780,7 @@ g_resolver_records_from_res_query (const gchar *rrname,
|
||||
record = parse_res_txt (answer, p + rdlength, &p);
|
||||
break;
|
||||
default:
|
||||
g_warn_if_reached ();
|
||||
g_debug ("Unrecognised DNS record type %u", rrtype);
|
||||
record = NULL;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user