diff options
-rw-r--r-- | claim/claim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/claim/claim.c b/claim/claim.c index e68134d5d4..9c7e97e9e8 100644 --- a/claim/claim.c +++ b/claim/claim.c @@ -162,8 +162,10 @@ void load_claiming_state(void) claimed_id = NULL; } - localhost->aclk_state.claimed_id = mallocz(UUID_STR_LEN); - uuid_unparse_lower(uuid, localhost->aclk_state.claimed_id); + if(claimed_id) { + localhost->aclk_state.claimed_id = mallocz(UUID_STR_LEN); + uuid_unparse_lower(uuid, localhost->aclk_state.claimed_id); + } invalidate_node_instances(&localhost->host_uuid, claimed_id ? &uuid : NULL); store_claim_id(&localhost->host_uuid, claimed_id ? &uuid : NULL); |