odr_reset(odr_encode);
Z_Query *query = (Z_Query*) odr_malloc(odr_encode, sizeof(*query));
query->which = Z_Query_type_1;
odr_reset(odr_encode);
Z_Query *query = (Z_Query*) odr_malloc(odr_encode, sizeof(*query));
query->which = Z_Query_type_1;
if (!query->u.type_1)
return -1;
if (!z_Query(odr_encode, &query, 0, 0))
if (!query->u.type_1)
return -1;
if (!z_Query(odr_encode, &query, 0, 0))