From 074671af290649642982c71df2fa9357045b10f9 Mon Sep 17 00:00:00 2001 From: joss17 Date: Wed, 20 Jan 2010 21:41:21 +0000 Subject: [PATCH] don't send an empty gpg key in p3disc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2100 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3disc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 8bf244dee..6e5b4c446 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -367,7 +367,11 @@ void p3disc::sendPeerDetails(std::string to, std::string about) { #endif return; } - di -> certGPG = AuthGPG::getAuthGPG()->SaveCertificateToString(about); + std::string cert = AuthGPG::getAuthGPG()->SaveCertificateToString(about); + if (cert == "") { + cert = "No Key"; + } + di -> certGPG = cert; // Send off message #ifdef P3DISC_DEBUG