projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e6678
)
Return NULL if peer is not yet known
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 21 Jun 2005 21:30:24 +0000
(21:30 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 21 Jun 2005 21:30:24 +0000
(21:30 +0000)
src/yaz-pdu-assoc.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-pdu-assoc.cpp
b/src/yaz-pdu-assoc.cpp
index
ffa85c2
..
b8e3416
100644
(file)
--- 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 <assert.h>
@@
-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);
}