• R/O
  • HTTP
  • SSH
  • HTTPS

ultramonkey-l7-v2: コミット

UltraMonkey-L7 V2(single-thread implementation)


コミットメタ情報

リビジョン2fc0198b93c809737ed8aac79a22fb26aba7aedb (tree)
日時2009-12-25 09:43:23
作者Shinya TAKEBAYASHI <makoto@kano...>
コミッターShinya TAKEBAYASHI

ログメッセージ

Port range check was implemented.

l7vsadm command can specify the port number greater than 65536.
This problem was fixed.

変更サマリ

差分

--- a/src/l7vsadm_main.c
+++ b/src/l7vsadm_main.c
@@ -2319,6 +2319,14 @@ parse_endpoint(struct sockaddr_in *addr, const char *endpoint_str, int allow_ina
23192319 }
23202320 *t++ = '\0';
23212321
2322+ if (atoi(t) > 65535) {
2323+ LOGGER_PUT_LOG_ERROR(LOG_CAT_L7VSADM_PARSE,8,
2324+ "Port number is invalid.");
2325+ fprintf(stderr, "PARSE ERROR : "
2326+ "Cannot specify port number greater than 65536.\n");
2327+ }
2328+
2329+
23222330 memset(&hints, 0, sizeof(hints));
23232331 hints.ai_family = PF_INET; /* inet only. no support for inet6 (yet) */
23242332 hints.ai_socktype = SOCK_STREAM;
旧リポジトリブラウザで表示