WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
static char buf[5];
char *ret;
- if ((NULL == cp) ||
- (NULL == &cp->pid.public_key))
+ if ((NULL == cp) ||
+ (0 == GNUNET_is_zero (&cp->pid.public_key)))
return "NULL";
-
-
+
ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key);
-
if (NULL == ret)
return "NULL";
-
-
+
GNUNET_strlcpy (buf,
ret,
sizeof (buf));
(NULL == cp->core_mq) ? "" : " including direct link");
if (NULL != cp->core_mq)
{
- /* FIXME: this branch seems to duplicate the
+ /* FIXME: this branch seems to duplicate the
i=0 case below (direct link). Leave out!??? -CG */
struct CadetPeerPath *path;