/*
This file is part of GNUnet
- (C) 2006, 2008, 2009 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2006, 2008, 2009 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
}
if (0 == ret)
{
+ memset (&table[0]->id, 0, sizeof (struct GNUNET_PeerIdentity));
table[0]->pid = 0;
table[0]->rc = 1;
ret = 1;
const struct GNUNET_PeerIdentity *
GNUNET_PEER_resolve2 (GNUNET_PEER_Id id)
{
+ GNUNET_assert (id < size);
+ GNUNET_assert (table[id]->rc > 0);
return &table[id]->id;
}