]> arthur.barton.de Git - netatalk.git/commitdiff
Limit the number of responses in a NBPOP_LKUPREPLY to 10
authorbfernhomberg <bfernhomberg>
Sun, 20 Jun 2004 15:54:03 +0000 (15:54 +0000)
committerbfernhomberg <bfernhomberg>
Sun, 20 Jun 2004 15:54:03 +0000 (15:54 +0000)
etc/atalkd/nbp.c

index dda94394a2997f858e31e2c002eb921a48049cc2..ee69cc314fabd7cd13f415ecfbcca9d1fc3fbdf8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp.c,v 1.10.8.1 2004-01-10 08:09:12 bfernhomberg Exp $
+ * $Id: nbp.c,v 1.10.8.2 2004-06-20 15:54:03 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -563,7 +563,7 @@ Can't find route's interface!" );
             * Another tuple won't fit. Send what we've already
             * got, and start the next packet.
             */
-           if ( data + SZ_NBPTUPLE + 3 + ntab->nt_nve.nn_objlen +
+           if ( n > 9 || data + SZ_NBPTUPLE + 3 + ntab->nt_nve.nn_objlen +
                    ntab->nt_nve.nn_typelen + ntab->nt_nve.nn_zonelen > end ) {
                nh.nh_op = NBPOP_LKUPREPLY;
                nh.nh_cnt = n;