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:
b51e13a
)
Dont set cookie in init response if it's empty
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 11 Jun 2003 22:08:56 +0000
(22:08 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 11 Jun 2003 22:08:56 +0000
(22:08 +0000)
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
b5d6720
..
562b72c
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.cpp,v 1.41 2003-06-11 21:59:07 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.42 2003-06-11 22:08:56 adam Exp $
*/
#include <assert.h>
*/
#include <assert.h>
@@
-442,7
+442,7
@@
void Yaz_Proxy::recv_Z_PDU(Z_APDU *apdu)
{
Z_APDU *apdu = m_client->m_initResponse;
apdu->u.initResponse->otherInfo = 0;
{
Z_APDU *apdu = m_client->m_initResponse;
apdu->u.initResponse->otherInfo = 0;
- if (m_client->m_cookie)
+ if (m_client->m_cookie && *m_client->m_cookie)
set_otherInformationString(apdu, VAL_COOKIE, 1,
m_client->m_cookie);
send_Z_PDU(apdu);
set_otherInformationString(apdu, VAL_COOKIE, 1,
m_client->m_cookie);
send_Z_PDU(apdu);