projects
/
pdns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6b4d6
)
check new key before replacing old one.
author
bert hubert
<bert.hubert@powerdns.com>
Wed, 12 Apr 2017 09:42:14 +0000
(11:42 +0200)
committer
bert hubert
<bert.hubert@powerdns.com>
Wed, 12 Apr 2017 09:42:14 +0000
(11:42 +0200)
pdns/dnsdist-lua.cc
patch
|
blob
|
history
diff --git
a/pdns/dnsdist-lua.cc
b/pdns/dnsdist-lua.cc
index 7372ec3a85877a45689b9d06dda87083770d0141..4ac112111490c966d5d38712a48da240cbc8d16f 100644
(file)
--- a/
pdns/dnsdist-lua.cc
+++ b/
pdns/dnsdist-lua.cc
@@
-1467,11
+1467,13
@@
vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
}
setLuaSideEffect();
-
g_key.clear()
;
- if(B64Decode(key,
g_
key) < 0) {
+
string newkey
;
+ if(B64Decode(key,
new
key) < 0) {
g_outputBuffer=string("Unable to decode ")+key+" as Base64";
errlog("%s", g_outputBuffer);
}
+ else
+ g_key=newkey;
});