summaryrefslogtreecommitdiffstats
path: root/lib/libtdekrb
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-26 23:52:01 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-26 23:52:01 -0500
commit65886d792d198528a7f35d8d59f8cfeaa5d34e1c (patch)
treeb83ca439b0b7e6a4d6ff8d6ed1de1f22c6a91f97 /lib/libtdekrb
parent9c9085621bf01f9b39e15eb856ff521ecb01fccf (diff)
downloadulab-65886d792d198528a7f35d8d59f8cfeaa5d34e1c.tar.gz
ulab-65886d792d198528a7f35d8d59f8cfeaa5d34e1c.zip
Add skeleton for FPGA viewer
Fix authserver crash
Diffstat (limited to 'lib/libtdekrb')
-rw-r--r--lib/libtdekrb/src/tdekrbclientsocket.cpp2
-rw-r--r--lib/libtdekrb/src/tdekrbserversocket.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtdekrb/src/tdekrbclientsocket.cpp b/lib/libtdekrb/src/tdekrbclientsocket.cpp
index 96833a2..9ea30fa 100644
--- a/lib/libtdekrb/src/tdekrbclientsocket.cpp
+++ b/lib/libtdekrb/src/tdekrbclientsocket.cpp
@@ -388,7 +388,7 @@ void TDEKerberosClientSocket::sendSASLDataToNetwork(const char *buffer, unsigned
int result;
alloclen = ((length / 3) + 1) * 4 + 1;
- buf = (char*)malloc(alloclen);
+ buf = (char*)malloc(alloclen+1);
if (!buf) {
printf("[ERROR] Unable to malloc()!\n\r");
return;
diff --git a/lib/libtdekrb/src/tdekrbserversocket.cpp b/lib/libtdekrb/src/tdekrbserversocket.cpp
index d99ddaa..89cb05d 100644
--- a/lib/libtdekrb/src/tdekrbserversocket.cpp
+++ b/lib/libtdekrb/src/tdekrbserversocket.cpp
@@ -388,7 +388,7 @@ void TDEKerberosServerSocket::sendSASLDataToNetwork(const char *buffer, unsigned
int result;
alloclen = ((length / 3) + 1) * 4 + 1;
- buf = (char*)malloc(alloclen);
+ buf = (char*)malloc(alloclen+1);
if (!buf) {
printf("[ERROR] Unable to malloc()!\n\r");
return;