From c7b261442aaddfdc5d8908718702651d38082e18 Mon Sep 17 00:00:00 2001 From: didg Date: Sun, 13 Dec 2009 00:31:50 +0000 Subject: [PATCH] don't dump core if there's no zone for on a seeded interface --- etc/atalkd/zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/atalkd/zip.c b/etc/atalkd/zip.c index 0144576d..23d8188d 100644 --- a/etc/atalkd/zip.c +++ b/etc/atalkd/zip.c @@ -1,5 +1,5 @@ /* - * $Id: zip.c,v 1.14 2009-10-14 02:24:05 didg Exp $ + * $Id: zip.c,v 1.15 2009-12-13 00:31:50 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -659,7 +659,7 @@ int zip_packet(struct atport *ap,struct sockaddr_at *from, char *data, int len) * interface structure, not in the zone table. This allows us * to check that the net is giving us good zones. */ - if ( iface->i_flags & IFACE_SEED ) { + if ( (iface->i_flags & IFACE_SEED) && iface->i_czt) { if ( iface->i_czt->zt_len != *data || strndiacasecmp( iface->i_czt->zt_name, data + 1, *data ) != 0 ) { -- 2.39.2