mirror of
https://github.com/miekg/dns.git
synced 2025-10-13 19:01:01 +02:00
dont error on nil pkts
This commit is contained in:
parent
6ccd86a048
commit
6df62a99cb
@ -114,10 +114,6 @@ func doFunkensturm(i []byte) ([]byte, os.Error) {
|
|||||||
resultpkt = a.Func(pkt1, ok)
|
resultpkt = a.Func(pkt1, ok)
|
||||||
}
|
}
|
||||||
|
|
||||||
if resultpkt == nil {
|
|
||||||
return nil, &dns.Error{Error: "Action function returned nil packet"}
|
|
||||||
}
|
|
||||||
|
|
||||||
if *verbose {
|
if *verbose {
|
||||||
fmt.Printf(">>>>>> ORIGINAL OUTGOING\n")
|
fmt.Printf(">>>>>> ORIGINAL OUTGOING\n")
|
||||||
fmt.Printf("%v", resultpkt)
|
fmt.Printf("%v", resultpkt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user