• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

Revisionf5164859597a71bc08a7ebe3f3d65badeff5922f (tree)
Zeit2012-09-14 17:22:23
Autorhibari <l05102@shib...>
Commiterhibari

Log Message

Rev b9d8e26 のコミットで変数の初期化処理を削除してしまっていたため、
l7directordがreload時等に以下のwarningを出力するようになっていた
問題を修正。

[WRN0301] Perl warning: Use of uninitialized value in concatenation (.) or string at /usr/sbin/l7directord line
3457.'

Ändern Zusammenfassung

Diff

--- a/l7directord/l7directord
+++ b/l7directord/l7directord
@@ -942,6 +942,7 @@ sub validate_config {
942942 elsif ($name eq 'module') {
943943 my $module = undef;
944944 my $option = undef;
945+ my $key = q{};
945946 if (defined $value) {
946947 $value =~ s/["']//g;
947948 ($module, $option) = split /\s+/, $value, 2;
@@ -949,7 +950,7 @@ sub validate_config {
949950 if ( $module =~ /[^a-z]/ ) {
950951 config_error($line, 'ERR0111', $config);
951952 }
952- $value = {name => $module, option => $option};
953+ $value = {name => $module, option => $option, key => $key};
953954 }
954955 elsif ($name eq 'sorryserver') {
955956 my $forward = 'masq';