summaryrefslogtreecommitdiff
blob: 8a5c581ef6add682ef69dabd2f86a4e194a60d94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- ./tftp/tftp.c.orig	2007-07-19 14:56:11.000000000 +0400
+++ ./tftp/tftp.c	2007-07-19 15:31:47.000000000 +0400
@@ -197,9 +197,12 @@
 		}
 		else {
 			amount += size;
+			if (size != SEGSIZE) {
+				break;
+			}
 		}
 		block++;
-	} while (size == SEGSIZE);
+	} while (1);
 abort:
 	fclose(file);
 	stopclock();