From: didg Date: Sat, 12 Oct 2002 18:20:48 +0000 (+0000) Subject: fix to a fix, hopefully the last one X-Git-Tag: netatalk-1-6-pre1~14 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=b76182add1fa2ba5c69a852f086f34cdc55793d7;p=netatalk.git fix to a fix, hopefully the last one --- diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index f76df1a3..496fb858 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.44 2002-10-12 17:27:18 didg Exp $ + * $Id: directory.c,v 1.45 2002-10-12 18:20:48 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -1972,8 +1972,8 @@ int ibuflen, *rbuflen; sfunc = (unsigned char) *ibuf++; memcpy( &id, ibuf, sizeof( id )); - *rbuflen = 0; id = ntohl(id); + *rbuflen = 0; if ( id != 0 ) { switch ( sfunc ) { @@ -1994,7 +1994,6 @@ int ibuflen, *rbuflen; break; default : - *rbuflen = 0; return( AFPERR_PARAM ); } switch ( sfunc ) { @@ -2021,7 +2020,7 @@ int ibuflen, *rbuflen; } else { *rbuf++ = len; - *rbuflen++; + *rbuflen += 1; } if ( len > 0 ) { memcpy( rbuf, name, len );