소스 검색

Don't try to send files larger than INT64_MAX

Part of #441 without merge conflict.
bel2125 8 년 전
부모
커밋
6adb3b695b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -8136,6 +8136,7 @@ handle_static_file_request(struct mg_connection *conn,
 		                   500,
 		                   "Error: File size is too large to send\n%" INT64_FMT,
 		                   filep->stat.size);
+		return;
 	}
 	cl = (int64_t)filep->stat.size;
 	conn->status_code = 200;