From da21e55a429caf3d73de295c0bd72a35dbb50b76 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 2 Mar 2016 14:58:09 +0100 Subject: [PATCH] please don't just replace atoi with pdns_stou - it does something different --- pdns/pdnsutil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 4413038956..8d15e2ab47 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -2069,10 +2069,10 @@ seedRandom(::arg()["entropy-source"]); return 0; } DNSName zone(cmds[1]); - unsigned int id=pdns_stou(cmds[2]); + unsigned int id=atoi(cmds[2].c_str()); // if you make this pdns_stou, the error gets worse if(!id) { - cerr<<"Invalid KEY-ID"<