diff --git a/main/features.c b/main/features.c
index 261ba4670e8a9dda07eaec8fcbb5f1c58597b75d..423ff27d758f5eac1dad82a6b8c5bc3505c399f0 100644
--- a/main/features.c
+++ b/main/features.c
@@ -754,7 +754,7 @@ static struct parkeduser *park_space_reserve(struct ast_channel *chan,
 		for (i = start; 1; i++) {
 			if (i == parkinglot->parking_stop + 1) {
 				i = parkinglot->parking_start - 1;
-				continue;
+				break;
 			}
 
 			AST_LIST_TRAVERSE(&parkinglot->parkings, cur, list) {
@@ -762,8 +762,7 @@ static struct parkeduser *park_space_reserve(struct ast_channel *chan,
 					break;
 				}
 			}
-
-			if (!cur || i == start - 1) {
+			if (!cur) {
 				parking_space = i;
 				break;
 			}