Fixed so far ignored $V verbosity.
authorshort <>
Tue, 18 Jan 2005 12:01:57 +0000 (12:01 +0000)
committershort <>
Tue, 18 Jan 2005 12:01:57 +0000 (12:01 +0000)
netdnsspoof

index af67626..ff2a63c 100755 (executable)
@@ -125,7 +125,6 @@ my($query_from_addr,$query)=@_;
        $spoof->header()->id($query->header()->id());
        my $msg_spoof=$spoof->data();
        warn "sending spoof reply..." if $D;
-       return $msg_spoof;
        if ($V) {
                my($query_from_addr_port,$query_from_addr_host)=sockaddr_in($query_from_addr);
                my $query_from_addr_name=inet_ntoa $query_from_addr_host;
@@ -135,6 +134,7 @@ my($query_from_addr,$query)=@_;
                                ." ip=".$opt_spoof_ip
                                ."\n";
                }
+       return $msg_spoof;
 }
 
 sub got_forward_reply($)