From 64ff1eadd3537def2c729baa10c2d677714daa9c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 14 Jun 2007 10:44:18 +0000 Subject: [PATCH] Fixed NULL ptr reference caused by omitted record syntax OID. Bug introduced in YAZ 3 series. --- ztest/ztest.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ztest/ztest.c b/ztest/ztest.c index 541ed73..159b2ac 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: ztest.c,v 1.93 2007-06-11 08:50:57 adam Exp $ + * $Id: ztest.c,v 1.94 2007-06-14 10:44:18 adam Exp $ */ /* @@ -504,17 +504,12 @@ int ztest_present (void *handle, bend_present_rr *rr) int ztest_fetch(void *handle, bend_fetch_rr *r) { char *cp; - oid_class oclass; - char oid_str_buf[OID_STR_MAX]; - const char *oid_str = 0; const Odr_oid *oid = r->request_format; r->last_in_set = 0; r->basename = "Default"; r->output_format = r->request_format; - oid_str = yaz_oid_to_string_buf(oid, &oclass, oid_str_buf); - if (oid && !oid_oidcmp(oid, yaz_oid_recsyn_sutrs)) { /* this section returns a small record */ -- 1.7.10.4