summaryrefslogtreecommitdiffstats
path: root/base/tps/src/processor/RA_Processor.cpp
diff options
context:
space:
mode:
authorJack Magne <jmagne@dhcp-32-224.sjc.redhat.com>2012-12-06 11:20:55 -0800
committerJack Magne <jmagne@dhcp-32-224.sjc.redhat.com>2012-12-06 11:33:39 -0800
commit6180bb1b8a450d0e69d10c5e9bd85996e2858599 (patch)
tree3f52cb9fd264b53684ac1bb949967eea09c0b1b7 /base/tps/src/processor/RA_Processor.cpp
parentcd279e34b5d92ff8fe53e79c974baf9972221748 (diff)
downloadpki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.tar.gz
pki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.tar.xz
pki-6180bb1b8a450d0e69d10c5e9bd85996e2858599.zip
Latest TPS memory related fixes.
Diffstat (limited to 'base/tps/src/processor/RA_Processor.cpp')
-rw-r--r--base/tps/src/processor/RA_Processor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/tps/src/processor/RA_Processor.cpp b/base/tps/src/processor/RA_Processor.cpp
index 5395d82b9..435e628cf 100644
--- a/base/tps/src/processor/RA_Processor.cpp
+++ b/base/tps/src/processor/RA_Processor.cpp
@@ -3144,9 +3144,12 @@ locale),
int defKeyIndex = RA::GetConfigStore()->GetConfigAsInt(configname, 0x0);
channel = SetupSecureChannel(session, 0x00,
defKeyIndex /* default key index */, connid);
- rc = channel->ExternalAuthenticate();
+
if (channel != NULL) {
char issuer[224];
+
+ rc = channel->ExternalAuthenticate();
+
for (int i = 0; i < 224; i++) {
issuer[i] = 0;
}