diff --git a/main/features.c b/main/features.c
index 0a4336f3bebc3e02641a15a589559064478ae6d2..4af8d1d111edd4028baecc2db881d6edd83448bb 100644
--- a/main/features.c
+++ b/main/features.c
@@ -3819,7 +3819,7 @@ static struct ast_parkinglot *build_parkinglot(char *name, struct ast_variable *
 	}
 
 	/* Add a parking extension into the context */
-	if (!oldparkinglot) {
+	if (!error && !oldparkinglot) {
 		if (!ast_strlen_zero(ast_parking_ext())) {
 			if (ast_add_extension2(con, 1, ast_parking_ext(), 1, NULL, NULL, parkcall, strdup(""), ast_free_ptr, registrar) == -1)
 				error = 1;