summaryrefslogtreecommitdiff
path: root/src/anytun.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/anytun.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/anytun.cpp')
-rw-r--r--src/anytun.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index ed6d845..fdeaead 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -364,6 +364,7 @@ bool initLibGCrypt()
gcry_error_t err = gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
if( err ) {
char buf[STERROR_TEXT_MAX];
+ buf[0] = 0;
std::cout << "initLibGCrypt: Failed to disable secure memory: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX) << std::endl;
return false;
}
@@ -372,6 +373,7 @@ bool initLibGCrypt()
err = gcry_control(GCRYCTL_INITIALIZATION_FINISHED);
if( err ) {
char buf[STERROR_TEXT_MAX];
+ buf[0] = 0;
std::cout << "initLibGCrypt: Failed to finish initialization: " << gpg_strerror_r(err, buf, STERROR_TEXT_MAX) << std::endl;
return false;
}