/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
r = z_GDU(odr, &gdu_req, 0, 0);
YAZ_CHECK(r);
+ if (r)
+ {
+ int len;
+ char *buf = odr_getbuf(odr, &len, 0);
+ ODR decode = odr_createmem(ODR_DECODE);
+ YAZ_CHECK(buf);
+ if (buf)
+ {
+ odr_setbuf(decode, buf, len, 0);
+ r = z_GDU(decode, &gdu_req, 0, 0);
+ YAZ_CHECK(r);
+ }
+ odr_destroy(decode);
+ }
odr_destroy(odr);
}