mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
22 lines
796 B
Diff
22 lines
796 B
Diff
diff --git a/resolv/res_send.c b/resolv/res_send.c
|
|
index 97142b7..a001c1e 100644
|
|
--- a/resolv/res_send.c
|
|
+++ b/resolv/res_send.c
|
|
@@ -549,7 +549,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
|
|
ns, ansp, ansp2, nansp2, resplen2);
|
|
if (n < 0)
|
|
return (-1);
|
|
- if (n == 0 && (buf2 == NULL || resplen2 == 0))
|
|
+ if (n == 0 && (buf2 == NULL || *resplen2 == 0))
|
|
goto next_ns;
|
|
} else {
|
|
/* Use datagrams. */
|
|
@@ -559,7 +559,7 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
|
|
ansp2, nansp2, resplen2);
|
|
if (n < 0)
|
|
return (-1);
|
|
- if (n == 0 && (buf2 == NULL || resplen2 == 0))
|
|
+ if (n == 0 && (buf2 == NULL || *resplen2 == 0))
|
|
goto next_ns;
|
|
if (v_circuit)
|
|
// XXX Check whether both requests failed or
|