X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fgdu.cpp;h=467ded2b2aa7b97d7968b9ee505c58746f163491;hb=805b4fdf7b70b0e9b298064f24ceff0c1d38e05b;hp=fb872517a233dd92dd5b81d02fb6308a3cbef6e4;hpb=217e153abe5e9c5aae6ef74a839bf01d30e295d3;p=yazpp-moved-to-github.git diff --git a/src/gdu.cpp b/src/gdu.cpp index fb87251..467ded2 100644 --- a/src/gdu.cpp +++ b/src/gdu.cpp @@ -44,7 +44,8 @@ void GDU::base(Z_GDU *gdu, ODR encode) 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); }