From: Adam Dickmeiss Date: Tue, 21 Jun 2005 21:30:24 +0000 (+0000) Subject: Return NULL if peer is not yet known X-Git-Tag: YAZPP.ERE2~4 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=75f7c460d6d10961f3d2ed841b757d6d6b7725d7;p=yazpp-moved-to-github.git Return NULL if peer is not yet known --- diff --git a/src/yaz-pdu-assoc.cpp b/src/yaz-pdu-assoc.cpp index ffa85c2..b8e3416 100644 --- a/src/yaz-pdu-assoc.cpp +++ b/src/yaz-pdu-assoc.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-pdu-assoc.cpp,v 1.41 2005-06-08 13:28:06 adam Exp $ + * $Id: yaz-pdu-assoc.cpp,v 1.42 2005-06-21 21:30:24 adam Exp $ */ #include @@ -489,5 +489,7 @@ void PDU_Assoc::childNotify(COMSTACK cs) const char*PDU_Assoc::getpeername() { + if (!m_cs) + return 0; return cs_addrstr(m_cs); }