Преглед изворни кода

fix error return in handleOutsideMessagePacket (#1970)

Introduced by #1961, we should still return early for invalid packets
Wade Simmons пре 3 дана
родитељ
комит
cda3710d5a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      outside.go

+ 1 - 1
outside.go

@@ -478,8 +478,8 @@ func (f *Interface) handleOutsideMessagePacket(hostinfo *HostInfo, messageCounte
 	if err != nil {
 		if f.l.Enabled(context.Background(), slog.LevelDebug) {
 			hostinfo.logger(f.l).Debug("Error while validating inbound packet", "error", err, "packet", out)
-			return
 		}
+		return
 	}
 
 	dropReason := f.firewall.Drop(rxc.fwPacket.Packet, true, hostinfo, f.pki.GetCAPool(), rxc.ctCache.Get())