From 192a5a9be43875c2d9bf59c05af802ef7e16358a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 29 May 2019 15:46:53 +0200 Subject: [PATCH] auth: Use the correct type while reading from the control channel --- pdns/dynlistener.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index c592b7cc31..c3a1dc7e3e 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -221,7 +221,7 @@ string DynListener::getLine() vector mesg; mesg.resize(1024000); - int len; + ssize_t len; ComboAddress remote; socklen_t remlen=remote.getSocklen(); @@ -284,12 +284,12 @@ string DynListener::getLine() else if(len==0) throw PDNSException("Guardian exited - going down as well"); - if(len == (int)mesg.size()) + if(static_cast(len) == mesg.size()) throw PDNSException("Line on control console was too long"); mesg[len]=0; } - + return &mesg[0]; } -- 2.47.2