projects
/
yazproxy-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:
2bab050
)
Fix NULL pointer reference (occurred when close PDU was received)
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 15 Dec 2004 11:42:27 +0000
(11:42 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 15 Dec 2004 11:42:27 +0000
(11:42 +0000)
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
935e453
..
5d7bded
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-1,4
+1,4
@@
-/* $Id: yaz-proxy.cpp,v 1.14 2004-12-13 20:52:33 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.15 2004-12-15 11:42:27 adam Exp $
Copyright (c) 1998-2004, Index Data.
This file is part of the yaz-proxy.
@@
-2391,7
+2391,7
@@
void Yaz_Proxy::handle_incoming_Z_PDU(Z_APDU *apdu)
// delete other info construct completely if 0 elements
get_otherInfoAPDU(apdu, &oi);
- if (*oi && (*oi)->num_elements == 0)
+ if (oi && *oi && (*oi)->num_elements == 0)
*oi = 0;
if (apdu->which == Z_APDU_presentRequest &&