From 75f7c460d6d10961f3d2ed841b757d6d6b7725d7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 21 Jun 2005 21:30:24 +0000 Subject: [PATCH] Return NULL if peer is not yet known --- src/yaz-pdu-assoc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 1.7.10.4