summaryrefslogtreecommitdiffstats
path: root/ldid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ldid.cpp')
-rw-r--r--ldid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index c652a90..20abec9 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1621,7 +1621,8 @@ std::vector<char> Sign(const void *idata, size_t isize, std::streambuf &output,
put(data, &directory, sizeof(directory));
put(data, identifier.c_str(), identifier.size() + 1);
- put(data, team.c_str(), team.size() + 1);
+ if (!team.empty())
+ put(data, team.c_str(), team.size() + 1);
uint8_t storage[special + normal][LDID_SHA1_DIGEST_LENGTH];
uint8_t (*hashes)[LDID_SHA1_DIGEST_LENGTH] = storage + special;