mirror of
https://github.com/kerberos-io/onvif.git
synced 2026-08-23 15:08:33 +00:00
If ListenPacket returns an error, c is nil and the deferred call to c.Close() will panic. Fix this by returning early from the method.
If ListenPacket returns an error, c is nil and the deferred call to c.Close() will panic. Fix this by returning early from the method.