From 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 15:48:04 +0200 Subject: add sqmail-4.2.29a --- src/dnsdoe.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/dnsdoe.c (limited to 'src/dnsdoe.c') diff --git a/src/dnsdoe.c b/src/dnsdoe.c new file mode 100644 index 0000000..ad6b253 --- /dev/null +++ b/src/dnsdoe.c @@ -0,0 +1,14 @@ +#include +#include "buffer.h" +#include "exit.h" +#include "dnsresolv.h" +#include "dns.h" + +void dnsdoe(int r) +{ + switch (r) { + case DNS_HARD: buffer_putsflush(buffer_2,"hard error\n"); _exit(100); + case DNS_SOFT: buffer_putsflush(buffer_2,"soft error\n"); _exit(111); + case DNS_MEM: buffer_putsflush(buffer_2,"out of memory\n"); _exit(111); + } +} -- cgit v1.2.3