mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 20:18:19 +00:00
fixed crash when shows leasesets
This commit is contained in:
1 parent
289c308600
commit
e190dab7d6
3 files changed
+8
-4
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2022, The PurpleI2P Project
|
||||
* Copyright (c) 2013-2023, The PurpleI2P Project
|
||||
*
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
*
|
||||
@@ -315,7 +315,7 @@ namespace data
|
||||
{
|
||||
// standard LS2 header
|
||||
std::shared_ptr<const IdentityEx> identity;
|
||||
if (readIdentity)
|
||||
if (readIdentity || !GetIdentity ())
|
||||
{
|
||||
identity = std::make_shared<IdentityEx>(buf, len);
|
||||
SetIdentity (identity);
|
||||
|
||||
Reference in new issue
Block a user