]> arthur.barton.de Git - netatalk.git/commitdiff
don't dump core if there's no zone for on a seeded interface
authordidg <didg>
Sun, 13 Dec 2009 00:31:50 +0000 (00:31 +0000)
committerdidg <didg>
Sun, 13 Dec 2009 00:31:50 +0000 (00:31 +0000)
etc/atalkd/zip.c

index 0144576d5d37e08242cca60d232d8e1cac07402e..23d8188dd9d053b242b958cf0f971d0b4f97cfab 100644 (file)
@@ -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 ) {