summaryrefslogtreecommitdiff
path: root/src/authAlgo.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-05-20 13:16:52 +0000
committerChristian Pointner <equinox@anytun.org>2008-05-20 13:16:52 +0000
commit64fd1fe78ec19feb8350eb709e85901b5688ae28 (patch)
tree4edf0cf7c35687a55592e5297dabde4362b76c75 /src/authAlgo.cpp
parentfixed bad default @ anyrtpproxy control-socket (diff)
bugfix with strerror_r - still not working but at least not using uninitialized data
Diffstat (limited to 'src/authAlgo.cpp')
-rw-r--r--src/authAlgo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/authAlgo.cpp b/src/authAlgo.cpp
index 617c93b..770bffe 100644
--- a/src/authAlgo.cpp
+++ b/src/authAlgo.cpp
@@ -75,6 +75,7 @@ void Sha1AuthAlgo::setKey(Buffer& key)
gcry_error_t err = gcry_md_setkey( ctx_, key.getBuf(), key.getLength() );
if( err ) {
char buf[STERROR_TEXT_MAX];
+ buf[0] = 0;
cLog.msg(Log::PRIO_ERR) << "Sha1AuthAlgo::setKey: Failed to set cipher key: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX);
}
}