summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_send.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libc/net/res_send.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c
index b89398aab3..0cda3510eb 100644
--- a/src/lib/libc/net/res_send.c
+++ b/src/lib/libc/net/res_send.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_send.c,v 1.7 1997/06/04 03:18:41 dm Exp $ */ 1/* $OpenBSD: res_send.c,v 1.8 1998/03/19 00:30:08 millert Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1989, 1993 4 * ++Copyright++ 1985, 1989, 1993
@@ -60,7 +60,7 @@
60static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; 60static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
61static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; 61static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $";
62#else 62#else
63static char rcsid[] = "$OpenBSD: res_send.c,v 1.7 1997/06/04 03:18:41 dm Exp $"; 63static char rcsid[] = "$OpenBSD: res_send.c,v 1.8 1998/03/19 00:30:08 millert Exp $";
64#endif 64#endif
65#endif /* LIBC_SCCS and not lint */ 65#endif /* LIBC_SCCS and not lint */
66 66
@@ -751,12 +751,12 @@ read_len:
751 } /*foreach ns*/ 751 } /*foreach ns*/
752 } /*foreach retry*/ 752 } /*foreach retry*/
753 res_close(); 753 res_close();
754 if (!v_circuit) 754 if (!v_circuit) {
755 if (!gotsomewhere) 755 if (!gotsomewhere)
756 errno = ECONNREFUSED; /* no nameservers found */ 756 errno = ECONNREFUSED; /* no nameservers found */
757 else 757 else
758 errno = ETIMEDOUT; /* no answer obtained */ 758 errno = ETIMEDOUT; /* no answer obtained */
759 else 759 } else
760 errno = terrno; 760 errno = terrno;
761 return (-1); 761 return (-1);
762} 762}