aboutsummaryrefslogtreecommitdiff
path: root/security/trousers/files/patch-src_tspi_rpc_hosttable.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/trousers/files/patch-src_tspi_rpc_hosttable.c')
-rw-r--r--security/trousers/files/patch-src_tspi_rpc_hosttable.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/security/trousers/files/patch-src_tspi_rpc_hosttable.c b/security/trousers/files/patch-src_tspi_rpc_hosttable.c
index 0acd9ec1a845..23d8c10488d6 100644
--- a/security/trousers/files/patch-src_tspi_rpc_hosttable.c
+++ b/security/trousers/files/patch-src_tspi_rpc_hosttable.c
@@ -1,4 +1,4 @@
---- src/tspi/rpc/hosttable.c.orig 2016-06-20 15:21:26 UTC
+--- src/tspi/rpc/hosttable.c.orig 2016-11-19 03:09:49 UTC
+++ src/tspi/rpc/hosttable.c
@@ -51,6 +51,8 @@ host_table_final()
{
@@ -9,16 +9,16 @@
MUTEX_LOCK(ht->lock);
for (hte = ht->entries; hte; hte = next) {
-@@ -84,6 +86,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC
- {
- struct host_table_entry *entry, *tmp;
+@@ -85,6 +87,8 @@ __tspi_add_table_entry(TSS_HCONTEXT tspC
+ struct host_table_entry *entry, *tmp;
+ int hostlen;
-+ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY);
++ if( ht == NULL ) return TSPERR(TSS_E_OUTOFMEMORY);
+
- entry = calloc(1, sizeof(struct host_table_entry));
- if (entry == NULL) {
- LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry));
-@@ -134,6 +138,8 @@ remove_table_entry(TSS_HCONTEXT tspConte
+ entry = calloc(1, sizeof(struct host_table_entry));
+ if (entry == NULL) {
+ LogError("malloc of %zd bytes failed.", sizeof(struct host_table_entry));
+@@ -144,6 +148,8 @@ remove_table_entry(TSS_HCONTEXT tspConte
{
struct host_table_entry *hte, *prev = NULL;
@@ -27,7 +27,7 @@
MUTEX_LOCK(ht->lock);
for (hte = ht->entries; hte; prev = hte, hte = hte->next) {
-@@ -158,6 +164,8 @@ get_table_entry(TSS_HCONTEXT tspContext)
+@@ -168,6 +174,8 @@ get_table_entry(TSS_HCONTEXT tspContext)
{
struct host_table_entry *index = NULL;