summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_message_parse.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 11:18:54 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 11:18:54 +0000
commit5b78f2cac220cdfce59ea511471676d98c1095e0 (patch)
tree8d1de0b43a1191ff3b397759c304a7dd833a4fa3 /src/libs6dns/s6dns_message_parse.c
parentaca1874cddffa5a2f6966ed1996cbd734bd1b5ae (diff)
downloads6-dns-5b78f2cac220cdfce59ea511471676d98c1095e0.tar.xz
Change error number for "server didn't understand" from EBADMSG to EILSEQ,
to work around fucking OpenBSD with minimal pain
Diffstat (limited to 'src/libs6dns/s6dns_message_parse.c')
-rw-r--r--src/libs6dns/s6dns_message_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6dns/s6dns_message_parse.c b/src/libs6dns/s6dns_message_parse.c
index f4af437..eef9410 100644
--- a/src/libs6dns/s6dns_message_parse.c
+++ b/src/libs6dns/s6dns_message_parse.c
@@ -14,7 +14,7 @@ int s6dns_message_parse (s6dns_message_header_t *h, char const *packet, unsigned
switch (h->rcode)
{
case 0 : break ;
- case 1 : return (errno = EBADMSG, 0) ;
+ case 1 : return (errno = EILSEQ, 0) ;
case 2 : return (errno = EBUSY, 0) ;
case 3 : return (errno = ENOENT, 0) ;
case 4 : return (errno = ENOTSUP, 0) ;