File netatalk-asingle-outofbounds.patch of Package netatalk

Use correct member of forklen array.

Bug 151539 - netatalk-2.0.3-6: 2 * array subscript out of range

 bin/megatron/asingle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: netatalk-2.0.3/bin/megatron/asingle.c
===================================================================
--- netatalk-2.0.3.orig/bin/megatron/asingle.c
+++ netatalk-2.0.3/bin/megatron/asingle.c
@@ -310,9 +310,9 @@ int single_header_read( fh, version )
 		sizeof(fh->backup_date));
     }
     if ( single.entry[ ADEID_RFORK ].ade_off == 0 ) {
-	fh->forklen[ ADEID_RFORK ] = 0;
+	fh->forklen[RESOURCE] = 0;
     } else {
-	fh->forklen[ ADEID_RFORK ] =
+	fh->forklen[RESOURCE] =
 		htonl( single.entry[ ADEID_RFORK ].ade_len );
     }
     if ( single.entry[ ADEID_DFORK ].ade_off == 0 ) {