From a6fbcb6e94e4ec445e9f002869037971f97bbd54 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 20 Feb 2018 10:26:04 +0100 Subject: [PATCH] auth: guard gethosntame call --- pdns/pdns_recursor.cc | 2 +- pdns/receiver.cc | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index af0944ba2..3b0829e0d 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3212,7 +3212,7 @@ static int serviceMain(int argc, char*argv[]) if (gethostname(tmp, sizeof(tmp)-1) == 0){ SyncRes::s_serverID = tmp; } else { - L<