gthreadedresolver: Treat query and answer counts as unsigned

They can’t be negative.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-21 14:51:08 +00:00
parent 08dee06b59
commit 0d42af06e0

View File

@ -738,7 +738,7 @@ g_resolver_records_from_res_query (const gchar *rrname,
gint herr,
GError **error)
{
gint count;
uint16_t count;
gchar namebuf[1024];
const guint8 *end, *p;
guint16 type, qclass, rdlength;