Преглед на файлове

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())