X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrwutil.c;h=f6dfdc4724965fa5fc17216777fee5507831a26a;hb=7dfff1f7b79d8a3cf5f5ed62c71f6e4c2a616072;hp=353286f206d019c45e4dc5ad2841367af85e2456;hpb=3b61496132dbd2b2127745cd9a3b4eeed8296ec5;p=yaz-moved-to-github.git diff --git a/src/srwutil.c b/src/srwutil.c index 353286f..f6dfdc4 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -36,7 +36,7 @@ char *yaz_encode_sru_dbpath_odr(ODR out, const char *db) return dst; } -Z_AttributeList *yaz_use_atttribute_create(ODR o, const char *name) { +Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name) { Z_AttributeList *attributes= (Z_AttributeList *) odr_malloc(o, sizeof(*attributes)); Z_AttributeElement ** elements; attributes->num_attributes = 1; @@ -335,6 +335,7 @@ int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, if (ret == 0 && (*soap_package)->which == Z_SOAP_generic) { *srw_pdu = (Z_SRW_PDU*) (*soap_package)->u.generic->p; + yaz_srw_decodeauth(*srw_pdu, hreq, 0, 0, decode); if ((*srw_pdu)->which == Z_SRW_searchRetrieve_request && (*srw_pdu)->u.request->database == 0)