mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
Handle error from XDR marshalling
This commit is contained in:
parent
bfba18fdcb
commit
962eaa8a4b
@ -288,7 +288,11 @@ func handleQueryV2(db *leveldb.DB, conn *net.UDPConn, addr *net.UDPAddr, buf []b
|
||||
return nil
|
||||
}
|
||||
|
||||
tb := ann.MarshalXDR()
|
||||
tb, err := ann.MarshalXDR()
|
||||
if err != nil {
|
||||
log.Println("QueryV2 response marshal:", err)
|
||||
return nil
|
||||
}
|
||||
_, err = conn.WriteToUDP(tb, addr)
|
||||
if err != nil {
|
||||
log.Println("QueryV2 response write:", err)
|
||||
|
Loading…
Reference in New Issue
Block a user