mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-04 09:46:59 +02:00
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:
parent
08dee06b59
commit
0d42af06e0
@ -738,7 +738,7 @@ g_resolver_records_from_res_query (const gchar *rrname,
|
|||||||
gint herr,
|
gint herr,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gint count;
|
uint16_t count;
|
||||||
gchar namebuf[1024];
|
gchar namebuf[1024];
|
||||||
const guint8 *end, *p;
|
const guint8 *end, *p;
|
||||||
guint16 type, qclass, rdlength;
|
guint16 type, qclass, rdlength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user