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:
02098ac
)
Allow NULL otherinfo ptr in get_cookie and get_proxy.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 2 May 2007 09:18:27 +0000
(09:18 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 2 May 2007 09:18:27 +0000
(09:18 +0000)
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
6b04f38
..
f1bc35f
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-1,4
+1,4
@@
-/* $Id: yaz-proxy.cpp,v 1.75 2007-04-30 19:46:34 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.76 2007-05-02 09:18:27 adam Exp $
Copyright (c) 1998-2007, Index Data.
This file is part of the yazproxy.
Copyright (c) 1998-2007, Index Data.
This file is part of the yazproxy.
@@
-487,7
+487,7
@@
char *Yaz_Proxy::get_cookie(Z_OtherInformation **otherInfo)
Z_OtherInformationUnit *oi =
update_otherInformation(otherInfo, 0, yaz_oid_userinfo_cookie, 1, 1);
Z_OtherInformationUnit *oi =
update_otherInformation(otherInfo, 0, yaz_oid_userinfo_cookie, 1, 1);
- if (oi->which == Z_OtherInfo_characterInfo)
+ if (oi && oi->which == Z_OtherInfo_characterInfo)
return oi->information.characterInfo;
return 0;
}
return oi->information.characterInfo;
return 0;
}
@@
-497,7
+497,7
@@
char *Yaz_Proxy::get_proxy(Z_OtherInformation **otherInfo)
Z_OtherInformationUnit *oi =
update_otherInformation(otherInfo, 0, yaz_oid_userinfo_proxy, 1, 1);
Z_OtherInformationUnit *oi =
update_otherInformation(otherInfo, 0, yaz_oid_userinfo_proxy, 1, 1);
- if (oi->which == Z_OtherInfo_characterInfo)
+ if (oi && oi->which == Z_OtherInfo_characterInfo)
return oi->information.characterInfo;
return 0;
}
return oi->information.characterInfo;
return 0;
}