projects
/
yazproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug #1989: For PQF SRU one char is stipped off query.
[yazproxy-moved-to-github.git]
/
src
/
yaz-proxy-config.cpp
diff --git
a/src/yaz-proxy-config.cpp
b/src/yaz-proxy-config.cpp
index
0a71115
..
b59d88a
100644
(file)
--- a/
src/yaz-proxy-config.cpp
+++ b/
src/yaz-proxy-config.cpp
@@
-1,5
+1,5
@@
-/* $Id: yaz-proxy-config.cpp,v 1.34 2006-07-06 11:50:26 adam Exp $
- Copyright (c) 1998-2006, Index Data.
+/* $Id: yaz-proxy-config.cpp,v 1.37 2007-05-08 12:05:09 adam Exp $
+ Copyright (c) 1998-2007, Index Data.
This file is part of the yazproxy.
This file is part of the yazproxy.
@@
-23,6
+23,7
@@
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <yaz/log.h>
#include "proxyp.h"
#include <yaz/log.h>
#include "proxyp.h"
+#include <yaz/oid_db.h>
class Yaz_ProxyConfigP {
friend class Yaz_ProxyConfig;
class Yaz_ProxyConfigP {
friend class Yaz_ProxyConfig;
@@
-822,8
+823,10
@@
int Yaz_ProxyConfig::check_syntax(ODR odr, const char *name,
}
else if (syntax)
{
}
else if (syntax)
{
- int match_oid[OID_SIZE];
- oid_name_to_oid(CLASS_RECSYN, match_type, match_oid);
+ Odr_oid *match_oid
+ = yaz_string_to_oid_odr(yaz_oid_std(),
+ CLASS_RECSYN, match_type,
+ odr);
if (oid_oidcmp(match_oid, syntax) == 0)
match = 1;
}
if (oid_oidcmp(match_oid, syntax) == 0)
match = 1;
}
@@
-877,8
+880,8
@@
int Yaz_ProxyConfig::check_syntax(ODR odr, const char *name,
return 25;
if (syntax)
{
return 25;
if (syntax)
{
- char dotoid_str[100];
- oid_to_dotstring(syntax, dotoid_str);
+ char dotoid_str[OID_STR_MAX];
+ oid_oid_to_dotstring(syntax, dotoid_str);
*addinfo = odr_strdup(odr, dotoid_str);
}
return atoi(match_error);
*addinfo = odr_strdup(odr, dotoid_str);
}
return atoi(match_error);