From 64f113142ce1f847896e50a43707d220681faf6b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 8 Nov 2002 12:23:38 +0000 Subject: [PATCH] Relax check for zero length OCTET aligned --- client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.c b/client/client.c index ed9f21f..b7b7e12 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.173 2002-10-22 10:05:36 adam Exp $ + * $Id: client.c,v 1.174 2002-11-08 12:23:38 adam Exp $ */ #include @@ -619,7 +619,7 @@ static void display_record(Z_External *r) if (ent && ent->value == VAL_SOIF) print_record((const unsigned char *) r->u.octet_aligned->buf, r->u.octet_aligned->len); - else if (r->which == Z_External_octet && r->u.octet_aligned->len) + else if (r->which == Z_External_octet) { const char *octet_buf = (char*)r->u.octet_aligned->buf; if (ent->value == VAL_TEXT_XML || ent->value == VAL_APPLICATION_XML || -- 1.7.10.4