| Index: src/tspi/rpc/hosttable.c
|
| diff --git a/src/tspi/rpc/hosttable.c b/src/tspi/rpc/hosttable.c
|
| index f3ec2eb97e8fa6080f626fa1f59954f1d50acbf7..5595b66c515517b7a7412b927568dfb41019d23c 100644
|
| --- a/src/tspi/rpc/hosttable.c
|
| +++ b/src/tspi/rpc/hosttable.c
|
| @@ -158,6 +158,10 @@ get_table_entry(TSS_HCONTEXT tspContext)
|
| {
|
| struct host_table_entry *index = NULL;
|
|
|
| + /* Avoid shutdown race in wpa_supplicant */
|
| + if (ht == NULL)
|
| + return NULL;
|
| +
|
| MUTEX_LOCK(ht->lock);
|
|
|
| for (index = ht->entries; index; index = index->next) {
|
| @@ -179,4 +183,3 @@ put_table_entry(struct host_table_entry *entry)
|
| if (entry)
|
| MUTEX_UNLOCK(entry->lock);
|
| }
|
| -
|
|
|