/* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2012 Index Data and Mike Taylor
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
{
int len;
char *buf = odr_getbuf(encode, &len, 0);
-
+
odr_setbuf(m_decode, buf, len, 0);
- z_GDU(m_decode, &m_gdu, 0, 0);
+ if (!z_GDU(m_decode, &m_gdu, 0, 0))
+ m_gdu = 0;
}
odr_destroy(encode);
}