X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=bd1ec843e678c621f11d5014341aaecddce86289;hp=44d6619001283a2fc22244cc12c73b0609e7498f;hb=5c0e243664a63c8522d400abbda6dc892cae4349;hpb=92e360a6e22fc5fda22d7f6a6449c3c8f0ee8fb9;ds=sidebyside diff --git a/src/seshigh.c b/src/seshigh.c index 44d6619..bd1ec84 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2088,7 +2088,7 @@ static int process_gdu_response(association *assoc, request *req, Z_GDU *res) */ static int process_z_response(association *assoc, request *req, Z_APDU *res) { - Z_GDU *gres = (Z_GDU *) odr_malloc(assoc->encode, sizeof(*res)); + Z_GDU *gres = (Z_GDU *) odr_malloc(assoc->encode, sizeof(*gres)); gres->which = Z_GDU_Z3950; gres->u.z3950 = res;