projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3227202
)
Client doesn't set VAL_PROXY otherinfo unless -p is specified.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 6 Aug 2001 20:22:23 +0000
(20:22 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 6 Aug 2001 20:22:23 +0000
(20:22 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
8feb388
..
00819c2
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-3,7
+3,10
@@
* See the file LICENSE for details.
*
* $Log: client.c,v $
* See the file LICENSE for details.
*
* $Log: client.c,v $
- * Revision 1.125 2001-07-19 19:51:41 adam
+ * Revision 1.126 2001-08-06 20:22:23 adam
+ * Client doesn't set VAL_PROXY otherinfo unless -p is specified.
+ *
+ * Revision 1.125 2001/07/19 19:51:41 adam
* Added typecasts to make C++ happy.
*
* Revision 1.124 2001/07/04 20:13:51 ja7
* Added typecasts to make C++ happy.
*
* Revision 1.124 2001/07/04 20:13:51 ja7
@@
-569,9
+572,9
@@
static void send_initRequest(const char* type_and_host)
req->referenceId = set_refid (out);
req->referenceId = set_refid (out);
-
- yaz_oi_set_string_oidval(&req->otherInfo, out, VAL_PROXY, 1, type_and_host);
-
+ if (yazProxy)
+ yaz_oi_set_string_oidval(&req->otherInfo, out, VAL_PROXY,
+ 1, type_and_host);
send_apdu(apdu);
printf("Sent initrequest.\n");
send_apdu(apdu);
printf("Sent initrequest.\n");
@@
-696,12
+699,12
@@
int cmd_open(char *arg)
if(yazProxy)
{
if(yazProxy)
{
- conn = cs_create_host(yazProxy, 1, &add);
+ conn = cs_create_host(yazProxy, 1, &add);
}
else
{
}
else
{
- conn = cs_create_host(type_and_host, 1, &add);
- };
+ conn = cs_create_host(type_and_host, 1, &add);
+ }
if (!conn)
{
if (!conn)
{
@@
-2726,8
+2729,8
@@
int main(int argc, char **argv)
apdu_file=fopen(arg, "a");
break;
case 'p':
apdu_file=fopen(arg, "a");
break;
case 'p':
- yazProxy=strdup(arg);
- break;
+ yazProxy=strdup(arg);
+ break;
case 'v':
yaz_log_init (yaz_log_mask_str(arg), "", NULL);
break;
case 'v':
yaz_log_init (yaz_log_mask_str(arg), "", NULL);
break;